private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            var contextMenu = HTMLRichTextBox.ContextMenu as ContextMenu;
            if (contextMenu != null)
            {
                contextMenu.Showing += ContextMenu_Showing;
            }

            InsertImageToRichtextCommand = new InsertImageToRichtextCommand(HTMLRichTextBox);
        }
        void SystemOptionsView_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            var exportSettings = new HtmlExportSettings
                                     {
                                         DocumentExportLevel = DocumentExportLevel.Fragment,
                                         StylesExportMode = StylesExportMode.Inline
                                     };
            htmlDataProvider.FormatProvider = new HtmlFormatProvider {ExportSettings = exportSettings};

            HTMLRichTextBox.ManageBookmarksDialog = new ManageBookmarksDialog();

            InsertImageToRichtextCommand = new InsertImageToRichtextCommand(HTMLRichTextBox);
        }
        public void Ctor()
        {
            // arrange
            Mock.SetupStatic(typeof(Ioc));

            // act
            var command = new InsertImageToRichtextCommand(new RadRichTextBox());

            // asssert
            Assert.IsNotNull(command);
        }
 void DocumentationStepView_Loaded(object sender, RoutedEventArgs e)
 {
     HTMLRichTextBox.ManageBookmarksDialog = new ManageBookmarksDialog();
     InsertImageToRichtextCommand = new InsertImageToRichtextCommand(HTMLRichTextBox);
 }