I'm working on a contextmenu instantiated by code and want to use the IsChecked property, but it doesn't works: The GlyphPanel remains Collapsed and the VisualState doesn't change.
About Style: I use my own style on contextmenu... I take all the style of Telerik dlls with reflector and change only background, border brush and border thickness properties...
It's my first application in Silverlight... I check in the VisualStateManager if control raise the visual transition (By handling the completed event of the Storyboard that must show the GlyphPanel) and it's seems that this storyboard is never executed.
I set all the code used, so you can maybe reproduce my problem:
This code is the code used to generate the controls:
The code that generate my context menu:
The code used to open the contextmenu:
And finally the Style from App.xaml applied to all context menus:
Do you have any idea?