Enabling/Disabling Controls bound to VM via naming conventions

Oct 5, 2010 at 1:49 PM

Hi,

I have the following control with  a Refresh method on the VM. IsEnabled is bound to a property (this approach worked in caliburn v1.1)  ;

 

<MenuItem  x:Name="Refresh" Header="Refresh"  IsEnabled="{Binding CanFetch}"  />

The binding for IsEnabled does not work.

What are the options available for enabling/disabling the control as Id prefer to use this style of binding IsEnabled when I dont have a corresponding "CanXXX" property?

Ideally I dont want to litter my VM with CanXXX properties for each method if this can be avoided.

 

Coordinator
Oct 5, 2010 at 2:02 PM

Can you confirm that you have changeset a63379fba70a or later? We had a bug in this that was just fixed at the end of last week.

Oct 5, 2010 at 2:22 PM
EisenbergEffect wrote:

Can you confirm that you have changeset a63379fba70a or later? We had a bug in this that was just fixed at the end of last week.

Great, thats it, latest source fixes the prob :)

Thanks for the quick reply Rob!