ApplicationCommands and EditingCommands disabled

8 posts, 0 answers
  1. David
    David avatar
    19 posts
    Member since:
    Jun 2008

    Posted 02 Dec 2010 Link to this post

    When I set the command to an ApplicationCommand or an EditingCommand for a button within a standard
    ToolBar as follows:
    <ToolBar>
       <Button Command="ApplicationCommands.Cut" ToolTip="Cut">
          <Image Source="/Project;component/Images/editcut.png"/>
       </Button>
       <Button Command="EditingCommands.ToggleBold" ToolTip="Bold">
          <TextBlock FontWeight="Bold"><Run Text="B"/></TextBlock>
       </Button>
    </ToolBar>
    these commands fire correctly for text contained within a RichTextBox.

    However if I change the ToolBar to a RadToolBar, the buttons are disabled.

    What do I need to do to allow these commands to fire as expected?





  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 08 Dec 2010 Link to this post

    Hi David,

    Thank you for reporting this. I have logged this in our PITS and you can check this issue's progress here.

    All the best,
    Alex Fidanov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. UI for WPF is Visual Studio 2017 Ready
  4. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 21 Apr 2011 Link to this post

    Please expedite the resolution for this. My users are pushing for the cut, copy, paste functionality to work properly. And currently all the buttons are disabled. This would help tremendously with the other problem of the context menus not displaying properly inside a RadPane.
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 26 Apr 2011 Link to this post

    Hi Rayne,

    We need some more time in order to investigate this issue and provide you an estimated time when it will be resolved. We 'll write you back tomorrow the latest.Thank you in advance for your patience.

    Kind regards,
    Petar Mladenov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 Apr 2011 Link to this post

    Hello Rayne,

    We increased this issue`s priority and we'll do our best to have it implemented for the upcoming internal builds.

    Greetings,
    Petar Mladenov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 27 Apr 2011 Link to this post

    Thank you for the quick response!! I'll be looking out for it.
  8. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 11 May 2011 Link to this post

    Hi Rayne,

     The actual problem here is that the ApplicationCommands are working with Input elements (as TextBoxes) if they are in different FocusScope from the Button that holds the Command. The WPF toolbar is different focus scope while our RadToolBar is not. 
    You can easily make like follows: 

    <telerik:RadToolBar FocusManager.IsFocusScope="True">

    I'll also make it by default in the default stlye, because the RadToolbar must be in different FocusScope as well.
    Hope this will help you.

    All the best,
    Miro Miroslavov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 11 May 2011 Link to this post

    Thank you!
Back to Top
UI for WPF is Visual Studio 2017 Ready