Hi all,
In our project we are creating a Rich Text Editor to enable the user to create "Word-like" templates. The editor uses the RadRichTextBoxRibbonUI and RadRichTextBox for most of the commands (for all the nice text formatting functions and so on). However, we have also added our own buttons to the ribbon to - for instance - insert custom "fields". This is a dropdown list button that needs to be populated by using a property on our ViewModel (we are using Caliburn).
The Ribbon UI has its DataContext pointing to the RichTextBox and all works well for the default functions. However, I am baffled as to how I get my custom buttons bound to properties on my ViewModel and calling methods on that ViewModel to handle its events.
I guess it basically means using two datacontexts or data sources.
How do I do this?
Regards,
Lucien Dol
Wellington, New Zealand
In our project we are creating a Rich Text Editor to enable the user to create "Word-like" templates. The editor uses the RadRichTextBoxRibbonUI and RadRichTextBox for most of the commands (for all the nice text formatting functions and so on). However, we have also added our own buttons to the ribbon to - for instance - insert custom "fields". This is a dropdown list button that needs to be populated by using a property on our ViewModel (we are using Caliburn).
The Ribbon UI has its DataContext pointing to the RichTextBox and all works well for the default functions. However, I am baffled as to how I get my custom buttons bound to properties on my ViewModel and calling methods on that ViewModel to handle its events.
I guess it basically means using two datacontexts or data sources.
How do I do this?
Regards,
Lucien Dol
Wellington, New Zealand