View Issue Details

IDProjectCategoryView StatusLast Update
0004046NoesisGUIStudiopublic2025-04-05 14:25
Reporterbjering Assigned Tomaherne  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product VersionStudio_Beta 
Target VersionStudio_BetaFixed in VersionStudio_Beta 
Summary0004046: MessageCommand and ChangeDataSetCommand, support for CanExecute
Description

Hi,
I am in the process of learning to work with Noesis Studio and I am starting out with a simple main menu. It is essentially four buttons, "New", "Resume", "Load" and "Quit". I have used the binding mechanism and the design time DataContext support to tie all these to commands in my design time view model. Now, is there a way to test drive how the "CanExecute" property of Commands influences rendering? In a real game the Resume command's CanExecute would return false if there is no save game.

I kind of expected MessageCommand & ChangeDataSetCommand to have a CanExecute property that I could change to test this but it seems missing, is there a reason for this?

I know I can test the rendering by changing the Enabled property directly on the Button, but it would be nice to be able to test the full behavior driven from only the view model.

/Jonas

PlatformAny

Activities

maherne

maherne

2025-04-05 14:25

developer   ~0010474

I have added an IsEnabled property to MessageCommand and ChangeDataSetCommand.

Setting a command's IsEnabled property to false, in a Data Set, will cause it to return CanExecute false.

Issue History

Date Modified Username Field Change
2025-04-04 13:58 bjering New Issue
2025-04-04 14:10 jsantos Assigned To => maherne
2025-04-04 14:10 jsantos Status new => assigned
2025-04-04 14:10 jsantos Target Version => Studio_Beta
2025-04-05 14:25 maherne Status assigned => resolved
2025-04-05 14:25 maherne Resolution open => fixed
2025-04-05 14:25 maherne Fixed in Version => Studio_Beta
2025-04-05 14:25 maherne Note Added: 0010474