Ejemplo n.º 1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            WebEditor mw = new WebEditor();

            mw.Show();
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow1 = ((WPF_WYSIWYG_HTML_Editor.WebEditor)(target));

            #line 8 "..\..\..\XAML\WebEditor.xaml"
                this.MainWindow1.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.RibbonButtonNew = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 24 "..\..\..\XAML\WebEditor.xaml"
                this.RibbonButtonNew.Click += new System.Windows.RoutedEventHandler(this.RibbonButtonNew_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.RibbonButtonOpen = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 28 "..\..\..\XAML\WebEditor.xaml"
                this.RibbonButtonOpen.Click += new System.Windows.RoutedEventHandler(this.RibbonButtonOpen_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.RibbonButtonOpenweb = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 36 "..\..\..\XAML\WebEditor.xaml"
                this.RibbonButtonOpenweb.Click += new System.Windows.RoutedEventHandler(this.RibbonButtonOpenweb_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.RibbonButtonSave = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 40 "..\..\..\XAML\WebEditor.xaml"
                this.RibbonButtonSave.Click += new System.Windows.RoutedEventHandler(this.RibbonButtonSave_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.RibbonComboboxFormat = ((System.Windows.Controls.ComboBox)(target));

            #line 50 "..\..\..\XAML\WebEditor.xaml"
                this.RibbonComboboxFormat.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RibbonComboboxFormat_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.RibbonComboboxFonts = ((System.Windows.Controls.ComboBox)(target));

            #line 60 "..\..\..\XAML\WebEditor.xaml"
                this.RibbonComboboxFonts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RibbonComboboxFonts_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.RibbonComboboxFontHeight = ((System.Windows.Controls.ComboBox)(target));

            #line 63 "..\..\..\XAML\WebEditor.xaml"
                this.RibbonComboboxFontHeight.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RibbonComboboxFontHeight_SelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.SettingsBold = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 68 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsBold.Click += new System.Windows.RoutedEventHandler(this.SettingsBold_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.SettingsItalic = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 71 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsItalic.Click += new System.Windows.RoutedEventHandler(this.SettingsItalic_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.SettingsUnderLine = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 74 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsUnderLine.Click += new System.Windows.RoutedEventHandler(this.SettingsUnderLine_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.SettingsFontColor = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 77 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsFontColor.Click += new System.Windows.RoutedEventHandler(this.SettingsFontColor_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.SettingsBackColor = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 80 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsBackColor.Click += new System.Windows.RoutedEventHandler(this.SettingsBackColor_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.SettingsAddLink = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 83 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsAddLink.Click += new System.Windows.RoutedEventHandler(this.SettingsAddLink_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.SettingsAddImage = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 86 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsAddImage.Click += new System.Windows.RoutedEventHandler(this.SettingsAddImage_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.SettingsLeftAlign = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 89 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsLeftAlign.Click += new System.Windows.RoutedEventHandler(this.SettingsLeftAlign_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.SettingsCenter2 = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 92 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsCenter2.Click += new System.Windows.RoutedEventHandler(this.SettingsCenter2_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.SettingsRightAlign = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 95 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsRightAlign.Click += new System.Windows.RoutedEventHandler(this.SettingsJustifyRight_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.SettingsCenter = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 98 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsCenter.Click += new System.Windows.RoutedEventHandler(this.SettingsJustifyFull_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.SettingsNumbered = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 101 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsNumbered.Click += new System.Windows.RoutedEventHandler(this.SettingsInsertOrderedList_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.SettingsBullets = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 104 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsBullets.Click += new System.Windows.RoutedEventHandler(this.SettingsBullets_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.SettingsOutIdent = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 107 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsOutIdent.Click += new System.Windows.RoutedEventHandler(this.SettingsOutIdent_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.SettingsIdent = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 110 "..\..\..\XAML\WebEditor.xaml"
                this.SettingsIdent.Click += new System.Windows.RoutedEventHandler(this.SettingsIdent_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.EditWeb1 = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 122 "..\..\..\XAML\WebEditor.xaml"
                this.EditWeb1.Click += new System.Windows.RoutedEventHandler(this.EditWeb_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.ViewHTML = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 127 "..\..\..\XAML\WebEditor.xaml"
                this.ViewHTML.Click += new System.Windows.RoutedEventHandler(this.ViewHTML_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.lblCursorPosition = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.webBrowserEditor = ((WPF_WYSIWYG_HTML_Editor.WPFWebBrowser)(target));
                return;

            case 28:
                this.HtmlEditor1 = ((WPF_WYSIWYG_HTML_Editor.HtmlEditor)(target));
                return;
            }
            this._contentLoaded = true;
        }