Command overrides IsEnabled property of MenuItem

2 posts, 0 answers
  1. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 10 Dec 2010 Link to this post


      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.
  2. George
    George avatar
    1332 posts

    Posted 11 Dec 2010 Link to this post

    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. 

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft R3 2016 release webinar banner
Back to Top