timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

VisualState 'Disabled' for MenuItem isn't working #222

Closed woodie2 closed 11 years ago

woodie2 commented 11 years ago

Hello,

When I use the following code to set a MenuItem:

MenuItem mi = new MenuItem(); mi.IsEnabled = false; menu.Items.Add(mi);

Than that item is not clickable, so far so good, but it isn't using the VisualState 'Disabled' from the 'Generic.xaml'. So you can't see if a Item is disabled or not. Can anyone confirm the problem?

Best regards, woodie