Hi Jeniffer,
Thank you for your update.
We have prepared a sample as per your requirement by binding “Document” property of SfRichTextBoxAdv control to the view model.
The View model contains
1. Documents property (Dictionary<string, Stream>) to map document title with document stream.
2. DocumentTitle property (string) to denote the title of current document loaded in SfRichTextBoxAdv.
3. Document property (DocumentAdv) to denote the current document loaded in SfRichTextBoxAdv.
The View contains:
1. ListView whose ItemSource property is bind to Documents.KeyCollection property and SelectedValue property is bind to DocumentTitle property.
2. SfRichTextBoxAdv whose Document property is bind to Document property of ViewModel.
In the sample, whenever the selected value of list value changes, the current document stream will be updated to the dictionary collection and the selected document will be loaded to the SfRichTextBoxAdv control. Please do find the sample from below link.
Sample Link:
Sample.zip
If this is not your requirement, kindly share us the information regarding the properties you need to bind to the view model, so that we can provide you with better solution.
Please let us know if you have any other questions.
Regards,
Arumuga Perumal S.
Hi Jeniffer,
Thank you for your update.
Please let us know if you require any further assistance. We will be happy to assist you.
Regards,
Arumuga Perumal S.