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

ApplicationCommands and EditingCommands disabled

7 Answers 87 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 03 Dec 2010, 05:34 AM
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?





7 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 08 Dec 2010, 09:55 AM
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
0
Rayne
Top achievements
Rank 1
answered on 21 Apr 2011, 02:48 PM
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.
0
Petar Mladenov
Telerik team
answered on 26 Apr 2011, 06:17 PM
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
0
Petar Mladenov
Telerik team
answered on 27 Apr 2011, 03:25 PM
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
0
Rayne
Top achievements
Rank 1
answered on 27 Apr 2011, 03:41 PM
Thank you for the quick response!! I'll be looking out for it.
0
Miro Miroslavov
Telerik team
answered on 11 May 2011, 04:10 PM
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
0
Rayne
Top achievements
Rank 1
answered on 11 May 2011, 04:14 PM
Thank you!
Tags
ToolBar
Asked by
David
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Rayne
Top achievements
Rank 1
Petar Mladenov
Telerik team
Miro Miroslavov
Telerik team
Share this question
or