Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PART_MainWindow = ((Imagin.NET.Demo.MainWindow)(target));
                return;

            case 3:
                this.PART_AdvancedTextBox = ((Imagin.Controls.Common.AdvancedTextBox)(target));
                return;

            case 4:
                this.PART_AdvancedTreeView = ((Imagin.Controls.Common.AdvancedTreeView)(target));
                return;

            case 5:

            #line 246 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnHorizontalContentAlignmentChanged);

            #line default
            #line hidden
                return;

            case 6:

            #line 247 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnHorizontalContentAlignmentChanged);

            #line default
            #line hidden
                return;

            case 7:

            #line 248 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnHorizontalContentAlignmentChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.PART_AlignableWrapPanel = ((Imagin.Controls.Common.AlignableWrapPanel)(target));
                return;

            case 9:
                this.PART_ColorComb = ((Imagin.Controls.Extended.ColorComb)(target));
                return;

            case 10:

            #line 337 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SelectColor);

            #line default
            #line hidden
                return;

            case 11:
                this.PART_ColorPicker = ((Imagin.Controls.Extended.ColorPicker)(target));
                return;

            case 12:

            #line 358 "..\..\..\MainWindow.xaml"
                ((Imagin.Controls.Common.MaskedButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OnGetParentPath);

            #line default
            #line hidden
                return;

            case 14:
                this.PART_DirectionPad = ((Imagin.Controls.Common.DirectionPad)(target));
                return;

            case 15:
                this.PART_FontFamilyBox = ((Imagin.Controls.Common.FontFamilyBox)(target));
                return;

            case 16:
                this.PART_FontSizeBox = ((Imagin.Controls.Common.FontSizeBox)(target));
                return;

            case 17:

            #line 460 "..\..\..\MainWindow.xaml"
                ((Imagin.Controls.Common.Link)(target)).Click += new System.Windows.RoutedEventHandler(this.Link_Click);

            #line default
            #line hidden
                return;

            case 18:

            #line 470 "..\..\..\MainWindow.xaml"
                ((Imagin.Controls.Common.MaskedButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OnGetParentPath);

            #line default
            #line hidden
                return;

            case 19:

            #line 478 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnViewChanged);

            #line default
            #line hidden
                return;

            case 20:

            #line 479 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnViewChanged);

            #line default
            #line hidden
                return;

            case 21:

            #line 562 "..\..\..\MainWindow.xaml"
                ((Imagin.Controls.Common.MaskedButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OnMaskedButtonClick);

            #line default
            #line hidden
                return;

            case 22:
                this.PART_PasswordBox = ((Imagin.Controls.Common.PasswordBox)(target));

            #line 627 "..\..\..\MainWindow.xaml"
                this.PART_PasswordBox.Entered += new System.EventHandler <System.Windows.Input.KeyEventArgs>(this.OnPasswordEntered);

            #line default
            #line hidden
                return;

            case 23:
                this.PART_ListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 24:
                this.PART_Spacer = ((Imagin.Controls.Common.Spacer)(target));
                return;

            case 25:
                this.PART_SpacerThicknessLeft = ((Imagin.Controls.Common.DoubleUpDown)(target));

            #line 733 "..\..\..\MainWindow.xaml"
                this.PART_SpacerThicknessLeft.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OnSpacerThicknessChanged);

            #line default
            #line hidden
                return;

            case 26:
                this.PART_SpacerThicknessTop = ((Imagin.Controls.Common.DoubleUpDown)(target));

            #line 737 "..\..\..\MainWindow.xaml"
                this.PART_SpacerThicknessTop.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OnSpacerThicknessChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.PART_SpacerThicknessRight = ((Imagin.Controls.Common.DoubleUpDown)(target));

            #line 741 "..\..\..\MainWindow.xaml"
                this.PART_SpacerThicknessRight.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OnSpacerThicknessChanged);

            #line default
            #line hidden
                return;

            case 28:
                this.PART_SpacerThicknessBottom = ((Imagin.Controls.Common.DoubleUpDown)(target));

            #line 746 "..\..\..\MainWindow.xaml"
                this.PART_SpacerThicknessBottom.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OnSpacerThicknessChanged);

            #line default
            #line hidden
                return;

            case 29:
                this.PART_ShortUpDown = ((Imagin.Controls.Common.ShortUpDown)(target));
                return;

            case 30:
                this.PART_IntUpDown = ((Imagin.Controls.Common.IntUpDown)(target));
                return;

            case 31:
                this.PART_ByteUpDown = ((Imagin.Controls.Common.ByteUpDown)(target));
                return;

            case 32:
                this.PART_LongUpDown = ((Imagin.Controls.Common.LongUpDown)(target));
                return;

            case 33:
                this.PART_DoubleUpDown = ((Imagin.Controls.Common.DoubleUpDown)(target));
                return;

            case 34:
                this.PART_DecimalUpDown = ((Imagin.Controls.Common.DecimalUpDown)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PART_MainWindow = ((Imagin.NET.Demo.MainWindow)(target));
                return;

            case 3:

            #line 146 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnHorizontalContentAlignmentChanged);

            #line default
            #line hidden
                return;

            case 4:

            #line 147 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnHorizontalContentAlignmentChanged);

            #line default
            #line hidden
                return;

            case 5:

            #line 148 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnHorizontalContentAlignmentChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.PART_AlignableWrapPanel = ((Imagin.Controls.Common.AlignableWrapPanel)(target));
                return;

            case 7:
                this.PART_AnglePicker = ((Imagin.Controls.Extended.AnglePicker)(target));
                return;

            case 8:
                this.PART_ColorComb = ((Imagin.Controls.Extended.ColorComb)(target));
                return;

            case 9:

            #line 280 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnColorSelected);

            #line default
            #line hidden
                return;

            case 10:
                this.PART_ColorPicker = ((Imagin.Controls.Extended.ColorPicker)(target));
                return;

            case 11:

            #line 349 "..\..\MainWindow.xaml"
                ((Imagin.Controls.Common.MaskedButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OnGetParentPath);

            #line default
            #line hidden
                return;

            case 12:
                this.PART_DataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 14:
                this.PART_DirectionPad = ((Imagin.Controls.Common.DirectionPad)(target));
                return;

            case 15:
                this.PART_MenuItemSelectionModeComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 16:
                this.PART_Panel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 17:
                this.PART_SpacerThicknessLeft = ((Imagin.Controls.Common.DoubleUpDown)(target));

            #line 551 "..\..\MainWindow.xaml"
                this.PART_SpacerThicknessLeft.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OnPanelThicknessChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.PART_SpacerThicknessTop = ((Imagin.Controls.Common.DoubleUpDown)(target));

            #line 557 "..\..\MainWindow.xaml"
                this.PART_SpacerThicknessTop.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OnPanelThicknessChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.PART_SpacerThicknessRight = ((Imagin.Controls.Common.DoubleUpDown)(target));

            #line 563 "..\..\MainWindow.xaml"
                this.PART_SpacerThicknessRight.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OnPanelThicknessChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.PART_SpacerThicknessBottom = ((Imagin.Controls.Common.DoubleUpDown)(target));

            #line 569 "..\..\MainWindow.xaml"
                this.PART_SpacerThicknessBottom.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OnPanelThicknessChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.PART_FileBox = ((Imagin.Controls.Common.FileBox)(target));
                return;

            case 22:
                this.PART_FontFamilyBox = ((Imagin.Controls.Common.FontFamilyBox)(target));
                return;

            case 23:
                this.PART_FontSizeBox = ((Imagin.Controls.Common.FontSizeBox)(target));
                return;

            case 24:

            #line 724 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowClockGadget);

            #line default
            #line hidden
                return;

            case 25:

            #line 727 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSearchGadget);

            #line default
            #line hidden
                return;

            case 26:

            #line 765 "..\..\MainWindow.xaml"
                ((Imagin.Controls.Common.Link)(target)).Click += new System.Windows.RoutedEventHandler(this.OnLinkPressed);

            #line default
            #line hidden
                return;

            case 27:

            #line 783 "..\..\MainWindow.xaml"
                ((Imagin.Controls.Common.MaskedButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OnGetParentPath);

            #line default
            #line hidden
                return;

            case 28:

            #line 793 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnViewChanged);

            #line default
            #line hidden
                return;

            case 29:

            #line 794 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnViewChanged);

            #line default
            #line hidden
                return;

            case 30:
                this.PART_ListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 31:

            #line 898 "..\..\MainWindow.xaml"
                ((Imagin.Controls.Common.MaskedButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OnMaskedButtonClick);

            #line default
            #line hidden
                return;

            case 32:
                this.PART_PasswordBox = ((Imagin.Controls.Common.PasswordBox)(target));

            #line 986 "..\..\MainWindow.xaml"
                this.PART_PasswordBox.Entered += new System.EventHandler <System.Windows.Input.KeyEventArgs>(this.OnPasswordEntered);

            #line default
            #line hidden
                return;

            case 33:
                this.PART_ListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 34:
                this.PART_PropertyGrid = ((Imagin.Controls.Extended.PropertyGrid)(target));
                return;

            case 35:
                this.PART_ResourceDictionaryEditor = ((Imagin.Controls.Extended.ResourceDictionaryEditor)(target));
                return;

            case 36:
                this.PART_SelectionCanvas = ((Imagin.Controls.Common.SelectionCanvas)(target));
                return;

            case 37:

            #line 1129 "..\..\MainWindow.xaml"
                ((Imagin.Controls.Extended.SystemTreeView)(target)).AddHandler(System.Windows.Controls.TreeViewItem.ExpandedEvent, new System.Windows.RoutedEventHandler(this.SystemTreeView_Expanded));

            #line default
            #line hidden
                return;

            case 38:
                this.PART_Tabbed1 = ((Imagin.Controls.Extended.TabbedTree)(target));
                return;

            case 39:
                this.PART_Tabbed2 = ((Imagin.Controls.Extended.TabbedTree)(target));
                return;

            case 40:
                this.PART_TextBoxExt = ((Imagin.Controls.Common.TextBoxExt)(target));
                return;

            case 41:
                this.PART_RegexBox = ((Imagin.Controls.Common.RegexBox)(target));
                return;

            case 42:
                this.PART_TokenView = ((Imagin.Controls.Common.TokenView)(target));
                return;

            case 43:
                this.PART_TreeViewComboBox = ((Imagin.Controls.Common.TreeViewComboBox)(target));
                return;

            case 44:
                this.PART_TreeViewExt = ((Imagin.Controls.Common.TreeViewExt)(target));
                return;

            case 45:
                this.PART_DateTimeUpDown = ((Imagin.Controls.Common.DateTimeUpDown)(target));
                return;

            case 46:
                this.PART_ByteUpDown = ((Imagin.Controls.Common.ByteUpDown)(target));
                return;

            case 47:
                this.PART_DecimalUpDown = ((Imagin.Controls.Common.DecimalUpDown)(target));
                return;

            case 48:
                this.PART_DoubleUpDown = ((Imagin.Controls.Common.DoubleUpDown)(target));
                return;

            case 49:
                this.PART_IntUpDown = ((Imagin.Controls.Common.IntUpDown)(target));
                return;

            case 50:
                this.PART_LongUpDown = ((Imagin.Controls.Common.LongUpDown)(target));
                return;

            case 51:
                this.PART_ShortUpDown = ((Imagin.Controls.Common.ShortUpDown)(target));
                return;
            }
            this._contentLoaded = true;
        }