This is a migrated thread and some comments may be shown as answers.

Command overrides IsEnabled property of MenuItem

1 Answer 73 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Alexey Oyun
Top achievements
Rank 1
Alexey Oyun asked on 10 Dec 2010, 12:14 PM
  Hi,

  Maybe it is expected behavior, but setting IsEnabled and Command at same time, will make IsEnabled property useless.
  Command's can execute will override IsEnabled.
  So if you use both Command and IsEnabled, instead of setting IsEnabled, change CanExecute of command.

  Thanks, Alexey.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 11 Dec 2010, 10:26 AM
Hi Alexey,

Yes, you are right. If the Command can be executed, it will enable the control, no matter if you set IsEnabled to true or false. This is by design of the Silverlight framework. 


Greetings,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Menu
Asked by
Alexey Oyun
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or