void HtmlRichTextEditor_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { if (e.NewValue is IHtmlEditorViewModel) { htmlEditorViewModel = e.NewValue as IHtmlEditorViewModel; (e.NewValue as IHtmlEditorViewModel).HtmlRichTextEditor = this; } }
void HtmlRichTextEditor_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { if (e.NewValue is IHtmlEditorViewModel) { htmlEditorViewModel = e.NewValue as IHtmlEditorViewModel; (e.NewValue as IHtmlEditorViewModel).HtmlRichTextEditor = this; } }