Example #1
0
        private static void OnBindingContentChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            HtmlEditor editor = (HtmlEditor)sender;

            editor.myBindingContent = (string)e.NewValue;
            editor.ContentHtml      = editor.myBindingContent;
        }
Example #2
0
        private static void OnEditModeChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            HtmlEditor editor = (HtmlEditor)sender;

            if ((EditMode)e.NewValue == EditMode.Visual)
            {
                editor.SetVisualMode();
            }
            else
            {
                editor.SetSourceMode();
            }
        }