This question is locked. New answers and comments are not allowed.
Hello,
I have started to create a simple editor following your demo, but I have a problem with InsertLineBreakCommand and SelectAllCommand.
I am using them like this:
All other buttons like redo, undo, bold, italic, bullets are done the same way and work. From what I can see is that these specific commands do not return focus to the richtextbox. The weird thing though is that if I hook up an event handler in codebehind for the click event of the buttons and execute the same commands it works great, it even returns focus.
Anyone having the same problem?
I have started to create a simple editor following your demo, but I have a problem with InsertLineBreakCommand and SelectAllCommand.
I am using them like this:
<
Button
Content
=
"SelectAll"
Command
=
"{Binding Path=SelectAllCommand, ElementName=richTextBox}"
/>
<
Button
Content
=
"NewLine"
Command
=
"{Binding Path=InsertLineBreakCommand, ElementName=richTextBox}"
/>
All other buttons like redo, undo, bold, italic, bullets are done the same way and work. From what I can see is that these specific commands do not return focus to the richtextbox. The weird thing though is that if I hook up an event handler in codebehind for the click event of the buttons and execute the same commands it works great, it even returns focus.
Anyone having the same problem?