Hi.
I'm using radmenu like this:
so basically, i'm binding menu items to some commands which have canexecute method:
somewhere in code, raisecanexecutechanged method is properly raised:
StartEditPartCommand.RaiseCanExecuteChanged();
and... it doesn't refresh menuitems' IsEnabled property - they remain in previous state. Sliding mouse cursor over menuitem causes menuitems refresh, but not always.
When having changed radmenu to itemscontrols/stackpanels with buttons everything works fine, so it's probably bug with radmenu or radmenuitem?
I'm using radmenu like this:
<telerik:RadMenu Grid.Column="0" VerticalAlignment="Center" IsTabStop="False" Orientation="Vertical"> <telerik:RadMenu.Items> <telerik:RadMenuItem Header="Modyfikuj" Command="{Binding Path=StartEditPartCommand}"/> <telerik:RadMenuItem Header="Zatwierdź" Command="{Binding Path=CommitEditPartCommand}"/> <telerik:RadMenuItem Header="Anuluj" Command="{Binding Path=RejectEditPartCommand}"/> </telerik:RadMenu.Items></telerik:RadMenu>so basically, i'm binding menu items to some commands which have canexecute method:
StartEditPartCommand = new DelegateCommand( /*foo*/, () => !IsEditingPart && SelectedItem != null);somewhere in code, raisecanexecutechanged method is properly raised:
StartEditPartCommand.RaiseCanExecuteChanged();
and... it doesn't refresh menuitems' IsEnabled property - they remain in previous state. Sliding mouse cursor over menuitem causes menuitems refresh, but not always.
When having changed radmenu to itemscontrols/stackpanels with buttons everything works fine, so it's probably bug with radmenu or radmenuitem?
