Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class ViewModel: INotifyPropertyChanged
  2. {
  3. public string WrappedProperty
  4. {
  5. get => domainObject.Property;
  6. set
  7. {
  8. domainObject.Property = HttpUtility.DecodeHtml(value);
  9. //Raise Property changed event etc
  10. }
  11. }
  12. }
  13.  
  14. Binding binding = new Binding("HtmlText", _viewModel, "WrappedProperty", true, DataSourceUpdateMode.OnPropertyChanged,null,null);
  15. _richEditControl.DataBindings.Add(binding);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement