Example #1
0
        private void ClearEditBinding()
        {
            if (_EditControl != null)
            {
                //BindingOperations.ClearAllBindings((ExRichTextBox)_EditControl.Content);
                //BindingOperations.ClearAllBindings(_EditControl);

                ExRichTextBox rich = (ExRichTextBox)_EditControl.Content;

                rich.RemoveHandler(LostFocusEvent, new RoutedEventHandler(RichControl_LostFocus));
            }
        }
 public override void DisableEvent(object eventId)
 {
     base.DisableEvent(eventId);
     if (eventId is RichTextViewEvent)
     {
         switch ((RichTextViewEvent)eventId)
         {
         case RichTextViewEvent.NavigateToUrl:
             Widget.RemoveHandler(Hyperlink.RequestNavigateEvent, new RequestNavigateEventHandler(HyperlinkNavigated));
             break;
         }
     }
 }