
Hi
I have a WPF application with a ribbon. within the ribbon there are buttons with an ApplicationCommand attached, like ApplicationCommands.Copy
The application uses the syntaxeditor in a WindowsFormsHost conrol. The binding is set with some bindings.Add. This works one way completely. Clicking a button will activate the commandcode in the editor.
However, the enabling and disabling of the commandbuttons is not working nicely. I have to click on the ribbon to get the ribbon reflecting the correct state and activating the several command canexecute methods.
So how can i trigger the main application to refresh the ribbon command states after an action in the forms editor, e.g. using code in the selection_changed event.
I hope this is clear :)
Regards
Martin
PS I know this is a bit a wpf question:)
I have a WPF application with a ribbon. within the ribbon there are buttons with an ApplicationCommand attached, like ApplicationCommands.Copy
The application uses the syntaxeditor in a WindowsFormsHost conrol. The binding is set with some bindings.Add. This works one way completely. Clicking a button will activate the commandcode in the editor.
However, the enabling and disabling of the commandbuttons is not working nicely. I have to click on the ribbon to get the ribbon reflecting the correct state and activating the several command canexecute methods.
So how can i trigger the main application to refresh the ribbon command states after an action in the forms editor, e.g. using code in the selection_changed event.
I hope this is clear :)
Regards
Martin
PS I know this is a bit a wpf question:)