Hi
I want to change the behaviour of certain commands - as one example, I want to be able to execute ChangePageOrientationCommand in a protected document. The current value of CanExecuteBehaviorInProtectedDocument for that command is CanExecuteBehaviorInProtectedDocument.Never.
So, easy, right? I can derive from ChangePageOrientationCommand and override CanExecuteBehaviorInProtectedDocument. Done.
Then what I'd like to do is derive from RichTextBoxCommands, override the virtual ChangePageOrientationCommand and set the public Commands dependency property on RadRichTextBox... but I can't - the RichTextBoxCommands constructor is internal.
Is there an extensibility point I'm missing?
While I could just instantiate this new command elsewhere and point by ribbon button to this, I'd also like to subtly change the behavior of InsertCommand and DeleteCommand (so they don't execute in certain scenarios). This is much harder, as they're called internally by keyboard and mouse handling.
Thanks
Charlie
I want to change the behaviour of certain commands - as one example, I want to be able to execute ChangePageOrientationCommand in a protected document. The current value of CanExecuteBehaviorInProtectedDocument for that command is CanExecuteBehaviorInProtectedDocument.Never.
So, easy, right? I can derive from ChangePageOrientationCommand and override CanExecuteBehaviorInProtectedDocument. Done.
Then what I'd like to do is derive from RichTextBoxCommands, override the virtual ChangePageOrientationCommand and set the public Commands dependency property on RadRichTextBox... but I can't - the RichTextBoxCommands constructor is internal.
Is there an extensibility point I'm missing?
While I could just instantiate this new command elsewhere and point by ribbon button to this, I'd also like to subtly change the behavior of InsertCommand and DeleteCommand (so they don't execute in certain scenarios). This is much harder, as they're called internally by keyboard and mouse handling.
Thanks
Charlie