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

            editor.myBindingContent = (string)e.NewValue;
            editor.ContentHtml      = editor.myBindingContent;
        }
        public ComposeViewModel(MessageService service)
        {
            if (service == null) {
                throw new ArgumentException("Need working message service");
            }

            _msgService = service;
            DisplayName = Resources.Compose_DisplayName;
            Editor = new HtmlEditor();
        }
Example #3
0
        private static void OnEditModeChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            HtmlEditor editor = (HtmlEditor)sender;

            if ((EditMode)e.NewValue == EditMode.Visual)
            {
                editor.SetVisualMode();
            }
            else
            {
                editor.SetSourceMode();
            }
        }
Example #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Picker_Time = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 2:
                this.cmb_diaryType = ((System.Windows.Controls.ComboBox)(target));

            #line 26 "..\..\..\MainWindow.xaml"
                this.cmb_diaryType.Loaded += new System.Windows.RoutedEventHandler(this.cmb_Item_Loaded);

            #line default
            #line hidden
                return;

            case 3:
                this.txt_Title = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.btn_save = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\..\MainWindow.xaml"
                this.btn_save.Click += new System.Windows.RoutedEventHandler(this.Functino_buttonClitk);

            #line default
            #line hidden
                return;

            case 5:
                this.listB_itemList = ((System.Windows.Controls.ListBox)(target));

            #line 33 "..\..\..\MainWindow.xaml"
                this.listB_itemList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listB_itemList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.Editor = ((Smith.WPF.HtmlEditor.HtmlEditor)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #5
0
        private static void OnIsToolbarVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HtmlEditor editor = (HtmlEditor)d;

            editor.SetToolbarVisibility((bool)e.NewValue);
        }
Example #6
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.This = ((Smith.WPF.HtmlEditor.HtmlEditor)(target));
     return;
     case 2:
     
     #line 82 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.BoldExecuted);
     
     #line default
     #line hidden
     
     #line 83 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 85 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ItalicExecuted);
     
     #line default
     #line hidden
     
     #line 86 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 88 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.UnderlineExecuted);
     
     #line default
     #line hidden
     
     #line 89 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 91 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SubscriptExecuted);
     
     #line default
     #line hidden
     
     #line 92 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SubscriptCanExecute);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 94 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SuperscriptExecuted);
     
     #line default
     #line hidden
     
     #line 95 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SuperscriptCanExecute);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 97 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ClearStyleExecuted);
     
     #line default
     #line hidden
     
     #line 98 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 101 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.IndentExecuted);
     
     #line default
     #line hidden
     
     #line 102 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 104 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OutdentExecuted);
     
     #line default
     #line hidden
     
     #line 105 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 107 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.BubbledListExecuted);
     
     #line default
     #line hidden
     
     #line 108 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 110 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NumericListExecuted);
     
     #line default
     #line hidden
     
     #line 111 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 113 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.JustifyLeftExecuted);
     
     #line default
     #line hidden
     
     #line 114 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 116 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.JustifyRightExecuted);
     
     #line default
     #line hidden
     
     #line 117 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 119 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.JustifyCenterExecuted);
     
     #line default
     #line hidden
     
     #line 120 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 122 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.JustifyFullExecuted);
     
     #line default
     #line hidden
     
     #line 123 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 126 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.InsertHyperlinkExecuted);
     
     #line default
     #line hidden
     
     #line 127 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 17:
     
     #line 129 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.InsertImageExecuted);
     
     #line default
     #line hidden
     
     #line 130 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 18:
     
     #line 132 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.InsertTableExecuted);
     
     #line default
     #line hidden
     
     #line 133 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 19:
     
     #line 135 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.InsertCodeBlockExecuted);
     
     #line default
     #line hidden
     
     #line 136 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.EditingCommandCanExecute);
     
     #line default
     #line hidden
     return;
     case 20:
     this.EditingContextMenu = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 21:
     
     #line 142 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.UndoExecuted);
     
     #line default
     #line hidden
     
     #line 143 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.UndoCanExecute);
     
     #line default
     #line hidden
     return;
     case 22:
     
     #line 145 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.RedoExecuted);
     
     #line default
     #line hidden
     
     #line 146 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.RedoCanExecute);
     
     #line default
     #line hidden
     return;
     case 23:
     
     #line 148 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CutExecuted);
     
     #line default
     #line hidden
     
     #line 149 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CutCanExecute);
     
     #line default
     #line hidden
     return;
     case 24:
     
     #line 151 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CopyExecuted);
     
     #line default
     #line hidden
     
     #line 152 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CopyCanExecute);
     
     #line default
     #line hidden
     return;
     case 25:
     
     #line 154 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PasteExecuted);
     
     #line default
     #line hidden
     
     #line 155 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.PasteCanExecute);
     
     #line default
     #line hidden
     return;
     case 26:
     
     #line 157 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.DeleteExecuted);
     
     #line default
     #line hidden
     
     #line 158 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.DeleteCanExecute);
     
     #line default
     #line hidden
     return;
     case 27:
     
     #line 160 "..\..\..\Views\HtmlEditor.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SelectAllExecuted);
     
     #line default
     #line hidden
     return;
     case 28:
     this.CommandBar = ((System.Windows.Controls.ToolBar)(target));
     return;
     case 29:
     this.FontFamilyList = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 30:
     this.FontSizeList = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 31:
     this.ToggleBold = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 32:
     this.ToggleItalic = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 33:
     this.ToggleUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 34:
     this.ToggleSubscript = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 35:
     this.ToggleSuperscript = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 36:
     this.ToggleFontColor = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 37:
     this.FontColorContextMenu = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 38:
     this.FontColorPicker = ((Smith.WPF.HtmlEditor.ColorPicker)(target));
     return;
     case 39:
     this.ToggleLineColor = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 40:
     this.LineColorContextMenu = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 41:
     this.LineColorPicker = ((Smith.WPF.HtmlEditor.ColorPicker)(target));
     return;
     case 42:
     this.ClearStyleButton = ((System.Windows.Controls.Button)(target));
     return;
     case 43:
     this.ToggleBulletedList = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 44:
     this.ToggleNumberedList = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 45:
     this.ToggleJustifyLeft = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 46:
     this.ToggleJustifyCenter = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 47:
     this.ToggleJustifyRight = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 48:
     this.ToggleJustifyFull = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 49:
     this.InsertHyperlink = ((System.Windows.Controls.Button)(target));
     return;
     case 50:
     this.InsertImage = ((System.Windows.Controls.Button)(target));
     return;
     case 51:
     this.InsertTable = ((System.Windows.Controls.Button)(target));
     return;
     case 52:
     this.ToggleCodeMode = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     case 53:
     this.CodeEditor = ((System.Windows.Controls.TextBox)(target));
     return;
     case 54:
     this.BrowserHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
     return;
     case 55:
     this.VisualEditor = ((System.Windows.Forms.WebBrowser)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #7
0
 private static void ExpandEditorsAndHidePreview(HtmlEditor editor)
 {
     editor.SetPreviewText("");
     editor.Height = editor.lastHeigth;
     editor.EditorsGrid.Visibility = Visibility.Visible;
     editor.PreviewPanel.Visibility = Visibility.Collapsed;
 }
Example #8
0
 private static void CollapseEditorsAndShowPreview(HtmlEditor editor)
 {
     // store height for the moment when to expand
     editor.lastHeigth = editor.Height;
     editor.lastWidth = editor.ActualWidth;
     // set new height
     editor.Height = editor.Height - (editor.EditorsGrid.Height - editor.PreviewPanel.ActualHeight);
     // hide - show what needed in this case
     editor.EditorsGrid.Visibility = Visibility.Collapsed;
     editor.PreviewPanel.Visibility = Visibility.Visible;
     // set text - not too much
     editor.SetPreviewText(editor.ContentText);
 }
Example #9
0
        private static void OnSizeVisibilityChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            HtmlEditor editor = (HtmlEditor)sender;

            editor.FontSizeList.Visibility = (Visibility)e.NewValue;
        }
Example #10
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 2:
     this.tv_book = ((System.Windows.Controls.TreeView)(target));
     
     #line 8 "..\..\..\MainWindow.xaml"
     this.tv_book.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.tv_book_SelectedItemChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.tv_book_book = ((System.Windows.Controls.TreeViewItem)(target));
     return;
     case 4:
     this.gb_note = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 5:
     this.lb_noteList = ((System.Windows.Controls.ListBox)(target));
     
     #line 24 "..\..\..\MainWindow.xaml"
     this.lb_noteList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lb_noteList_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 24 "..\..\..\MainWindow.xaml"
     this.lb_noteList.LostFocus += new System.Windows.RoutedEventHandler(this.lb_noteList_LostFocus);
     
     #line default
     #line hidden
     return;
     case 6:
     this.groupBox3 = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 7:
     this.htmlEditor = ((Smith.WPF.HtmlEditor.HtmlEditor)(target));
     return;
     case 8:
     this.bt_createNote = ((System.Windows.Controls.Button)(target));
     
     #line 32 "..\..\..\MainWindow.xaml"
     this.bt_createNote.Click += new System.Windows.RoutedEventHandler(this.bt_createNote_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.bt_createBook = ((System.Windows.Controls.Button)(target));
     
     #line 37 "..\..\..\MainWindow.xaml"
     this.bt_createBook.Click += new System.Windows.RoutedEventHandler(this.bt_createBook_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.bt_delete = ((System.Windows.Controls.Button)(target));
     return;
     case 11:
     this.button4 = ((System.Windows.Controls.Button)(target));
     return;
     case 12:
     this.but_syn = ((System.Windows.Controls.Button)(target));
     
     #line 52 "..\..\..\MainWindow.xaml"
     this.but_syn.Click += new System.Windows.RoutedEventHandler(this.but_syn_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.but_Exit = ((System.Windows.Controls.Button)(target));
     
     #line 57 "..\..\..\MainWindow.xaml"
     this.but_Exit.Click += new System.Windows.RoutedEventHandler(this.but_Exit_Click_1);
     
     #line default
     #line hidden
     return;
     case 14:
     this.but_Setting = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\..\MainWindow.xaml"
     this.but_Setting.Click += new System.Windows.RoutedEventHandler(this.but_Setting_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.but_Login = ((System.Windows.Controls.Button)(target));
     
     #line 67 "..\..\..\MainWindow.xaml"
     this.but_Login.Click += new System.Windows.RoutedEventHandler(this.but_Login_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     case 17:
     this.bt_sava = ((System.Windows.Controls.Button)(target));
     return;
     case 18:
     this.textBox1 = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }