void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TableGrid = ((Fluent.Gallery)(target)); return; case 2: this.DollarButton = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.CentButton = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.PoundButton = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.YenButton = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.EuroButton = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.CopyrightButton = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.RegisteredTrademarkButton = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.TrademarkButton = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.SuperscriptOneButton = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.SuperscriptTwoButton = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.SuperscriptThreeButton = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TestContentControl = ((FluentTest.TestContent)(target)); return; case 3: this.ribbon = ((Fluent.Ribbon)(target)); return; case 4: this.tabGroup1 = ((Fluent.RibbonContextualTabGroup)(target)); return; case 5: this.tabGroup2 = ((Fluent.RibbonContextualTabGroup)(target)); return; case 6: this.invisibleTabGroup = ((Fluent.RibbonContextualTabGroup)(target)); return; case 7: this.startScreen = ((Fluent.StartScreen)(target)); return; case 8: #line 155 "TestContent.xaml" ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HandleSaveAsClick); #line default #line hidden return; case 9: #line 255 "TestContent.xaml" ((Fluent.Spinner)(target)).ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.OnSpinnerValueChanged); #line default #line hidden return; case 10: #line 284 "TestContent.xaml" ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnHelpClick); #line default #line hidden return; case 11: this.Clipboard = ((Fluent.RibbonGroupBox)(target)); #line 328 "TestContent.xaml" this.Clipboard.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick); #line default #line hidden return; case 12: this.saveButton = ((Fluent.Button)(target)); #line 337 "TestContent.xaml" this.saveButton.Click += new System.Windows.RoutedEventHandler(this.OnSaveButtonClick); #line default #line hidden return; case 13: this.buttonWatermark = ((Fluent.DropDownButton)(target)); return; case 14: this.WatermarkGallery = ((Fluent.Gallery)(target)); return; case 15: #line 360 "TestContent.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Suit_Button_Click); #line default #line hidden return; case 16: #line 374 "TestContent.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Sequence_Button_Click); #line default #line hidden return; case 17: #line 389 "TestContent.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Step_Button_Click); #line default #line hidden return; case 18: this.addChildren = ((Fluent.DropDownButton)(target)); return; case 19: this.ChildrenGallery = ((Fluent.Gallery)(target)); return; case 20: #line 422 "TestContent.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_App_Button_Click); #line default #line hidden return; case 21: #line 434 "TestContent.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_DataSource_Button_Click); #line default #line hidden return; case 22: #line 447 "TestContent.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Variable_Button_Click); #line default #line hidden return; case 23: #line 460 "TestContent.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Variable_Button_Click); #line default #line hidden return; case 24: this.cutButton = ((Fluent.Button)(target)); return; case 25: this.copyButton = ((Fluent.Button)(target)); return; case 26: this.pasteButton = ((Fluent.Button)(target)); #line 508 "TestContent.xaml" this.pasteButton.Click += new System.Windows.RoutedEventHandler(this.OnFormatPainterClick); #line default #line hidden return; case 27: this.FunctionsGalleryGroup = ((Fluent.RibbonGroupBox)(target)); return; case 28: this.galleryFunctionsInRibbonGallery = ((Fluent.InRibbonGallery)(target)); return; case 29: this.functionsFilterAll = ((Fluent.GalleryGroupFilter)(target)); return; case 30: this.Font = ((Fluent.RibbonGroupBox)(target)); #line 537 "TestContent.xaml" this.Font.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick); #line default #line hidden return; case 31: this.comboBoxFontName = ((Fluent.ComboBox)(target)); return; case 32: this.segoeFont = ((System.Windows.Controls.TextBlock)(target)); return; case 33: this.comboBoxFontSize = ((Fluent.ComboBox)(target)); return; case 34: this.buttonGrowFont = ((Fluent.Button)(target)); return; case 35: this.buttonShrinkFont = ((Fluent.Button)(target)); return; case 36: this.buttonChangeCase = ((Fluent.DropDownButton)(target)); return; case 37: this.buttonClearFormatting = ((Fluent.Button)(target)); return; case 38: this.buttonBold = ((Fluent.ToggleButton)(target)); return; case 39: this.buttonItalic = ((Fluent.ToggleButton)(target)); return; case 40: this.buttonUnderline = ((Fluent.DropDownButton)(target)); return; case 41: this.buttonStrikethrough = ((Fluent.Button)(target)); return; case 42: this.buttonSubscript = ((Fluent.Button)(target)); return; case 43: this.buttonSuperscript = ((Fluent.Button)(target)); return; case 44: this.buttonTextEffects = ((Fluent.DropDownButton)(target)); return; case 45: this.buttonTextHighlightColor = ((Fluent.DropDownButton)(target)); return; case 46: this.buttonFontColor = ((Fluent.DropDownButton)(target)); return; case 47: this.Group = ((Fluent.RibbonGroupBox)(target)); return; case 48: this.spinner = ((Fluent.Spinner)(target)); return; case 49: this.buttonGreen = ((Fluent.Button)(target)); return; case 50: this.buttonGray = ((Fluent.Button)(target)); return; case 51: this.buttonYellow = ((Fluent.Button)(target)); return; case 52: this.buttonBrown = ((Fluent.Button)(target)); return; case 53: this.B = ((Fluent.RibbonGroupBox)(target)); #line 889 "TestContent.xaml" this.B.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick); #line default #line hidden return; case 54: this.groupLL = ((Fluent.RibbonGroupBox)(target)); return; case 55: #line 951 "TestContent.xaml" ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HandleAddItemToFontsClick); #line default #line hidden return; case 56: this.InRibbonGallery = ((Fluent.InRibbonGallery)(target)); return; case 57: #line 1383 "TestContent.xaml" ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnEnlargeClick); #line default #line hidden return; case 58: #line 1388 "TestContent.xaml" ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnReduceClick); #line default #line hidden return; case 59: this.UndoButton = ((Fluent.SplitButton)(target)); return; case 60: this.ShowDetailButton = ((Fluent.ToggleButton)(target)); return; case 61: this.ShowMoreButton = ((Fluent.ToggleButton)(target)); return; case 62: this.FirstGalleryGroup = ((Fluent.RibbonGroupBox)(target)); return; case 63: this.dropDownGreen = ((Fluent.DropDownButton)(target)); return; case 64: this.SecondGalleryGroup = ((Fluent.RibbonGroupBox)(target)); return; case 65: this.gallerySampleInRibbonGallery = ((Fluent.InRibbonGallery)(target)); return; case 66: this.galleryFilterAll = ((Fluent.GalleryGroupFilter)(target)); return; case 67: this.A = ((Fluent.RibbonGroupBox)(target)); #line 1798 "TestContent.xaml" this.A.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick); #line default #line hidden return; case 68: this.GalleryFilterAll = ((Fluent.GalleryGroupFilter)(target)); return; case 69: #line 1850 "TestContent.xaml" ((Fluent.SplitButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSplitClick); #line default #line hidden return; case 70: this.Default = ((Fluent.RibbonGroupBox)(target)); return; case 71: this.Large = ((Fluent.RibbonGroupBox)(target)); return; case 72: this.Other = ((Fluent.RibbonGroupBox)(target)); return; case 73: this.ZC = ((Fluent.RibbonGroupBox)(target)); return; case 74: this.xxx = ((Fluent.RibbonGroupBox)(target)); #line 2317 "TestContent.xaml" this.xxx.LauncherClick += new System.Windows.RoutedEventHandler(this.OnLauncherButtonClick); #line default #line hidden return; case 75: this.zoomSlider = ((System.Windows.Controls.Slider)(target)); #line 2628 "TestContent.xaml" this.zoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZoomSlider_OnValueChanged); #line default #line hidden return; } this._contentLoaded = true; }
/// <summary> /// When overridden in a derived class, is invoked whenever application code or internal processes call <see cref="M:System.Windows.FrameworkElement.ApplyTemplate"/>. /// </summary> public override void OnApplyTemplate() { gallery = GetTemplateChild("PART_Gallery") as Gallery; if (gallery != null)gallery.ItemsSource = data; noColorMenuItem = GetTemplateChild("PART_NoColorMenuItem") as MenuItem; if (noColorMenuItem != null) noColorMenuItem.IsChecked = SelectedBrush.Color == Colors.Transparent; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TableGrid = ((Fluent.Gallery)(target)); return; case 2: this.TableGrid1X1 = ((System.Windows.Controls.Grid)(target)); return; case 3: this.TableGrid1X2 = ((System.Windows.Controls.Grid)(target)); return; case 4: this.TableGrid1X3 = ((System.Windows.Controls.Grid)(target)); return; case 5: this.TableGrid1X4 = ((System.Windows.Controls.Grid)(target)); return; case 6: this.TableGrid1X5 = ((System.Windows.Controls.Grid)(target)); return; case 7: this.TableGrid1X6 = ((System.Windows.Controls.Grid)(target)); return; case 8: this.TableGrid1X7 = ((System.Windows.Controls.Grid)(target)); return; case 9: this.TableGrid1X8 = ((System.Windows.Controls.Grid)(target)); return; case 10: this.TableGrid1X9 = ((System.Windows.Controls.Grid)(target)); return; case 11: this.TableGrid1X10 = ((System.Windows.Controls.Grid)(target)); return; case 12: this.TableGrid2X1 = ((System.Windows.Controls.Grid)(target)); return; case 13: this.TableGrid2X2 = ((System.Windows.Controls.Grid)(target)); return; case 14: this.TableGrid2X3 = ((System.Windows.Controls.Grid)(target)); return; case 15: this.TableGrid2X4 = ((System.Windows.Controls.Grid)(target)); return; case 16: this.TableGrid2X5 = ((System.Windows.Controls.Grid)(target)); return; case 17: this.TableGrid2X6 = ((System.Windows.Controls.Grid)(target)); return; case 18: this.TableGrid2X7 = ((System.Windows.Controls.Grid)(target)); return; case 19: this.TableGrid2X8 = ((System.Windows.Controls.Grid)(target)); return; case 20: this.TableGrid2X9 = ((System.Windows.Controls.Grid)(target)); return; case 21: this.TableGrid2X10 = ((System.Windows.Controls.Grid)(target)); return; case 22: this.TableGrid3X1 = ((System.Windows.Controls.Grid)(target)); return; case 23: this.TableGrid3X2 = ((System.Windows.Controls.Grid)(target)); return; case 24: this.TableGrid3X3 = ((System.Windows.Controls.Grid)(target)); return; case 25: this.TableGrid3X4 = ((System.Windows.Controls.Grid)(target)); return; case 26: this.TableGrid3X5 = ((System.Windows.Controls.Grid)(target)); return; case 27: this.TableGrid3X6 = ((System.Windows.Controls.Grid)(target)); return; case 28: this.TableGrid3X7 = ((System.Windows.Controls.Grid)(target)); return; case 29: this.TableGrid3X8 = ((System.Windows.Controls.Grid)(target)); return; case 30: this.TableGrid3X9 = ((System.Windows.Controls.Grid)(target)); return; case 31: this.TableGrid3X10 = ((System.Windows.Controls.Grid)(target)); return; case 32: this.TableGrid4X1 = ((System.Windows.Controls.Grid)(target)); return; case 33: this.TableGrid4X2 = ((System.Windows.Controls.Grid)(target)); return; case 34: this.TableGrid4X3 = ((System.Windows.Controls.Grid)(target)); return; case 35: this.TableGrid4X4 = ((System.Windows.Controls.Grid)(target)); return; case 36: this.TableGrid4X5 = ((System.Windows.Controls.Grid)(target)); return; case 37: this.TableGrid4X6 = ((System.Windows.Controls.Grid)(target)); return; case 38: this.TableGrid4X7 = ((System.Windows.Controls.Grid)(target)); return; case 39: this.TableGrid4X8 = ((System.Windows.Controls.Grid)(target)); return; case 40: this.TableGrid4X9 = ((System.Windows.Controls.Grid)(target)); return; case 41: this.TableGrid4X10 = ((System.Windows.Controls.Grid)(target)); return; case 42: this.TableGrid5X1 = ((System.Windows.Controls.Grid)(target)); return; case 43: this.TableGrid5X2 = ((System.Windows.Controls.Grid)(target)); return; case 44: this.TableGrid5X3 = ((System.Windows.Controls.Grid)(target)); return; case 45: this.TableGrid5X4 = ((System.Windows.Controls.Grid)(target)); return; case 46: this.TableGrid5X5 = ((System.Windows.Controls.Grid)(target)); return; case 47: this.TableGrid5X6 = ((System.Windows.Controls.Grid)(target)); return; case 48: this.TableGrid5X7 = ((System.Windows.Controls.Grid)(target)); return; case 49: this.TableGrid5X8 = ((System.Windows.Controls.Grid)(target)); return; case 50: this.TableGrid5X9 = ((System.Windows.Controls.Grid)(target)); return; case 51: this.TableGrid5X10 = ((System.Windows.Controls.Grid)(target)); return; case 52: this.TableGrid6X1 = ((System.Windows.Controls.Grid)(target)); return; case 53: this.TableGrid6X2 = ((System.Windows.Controls.Grid)(target)); return; case 54: this.TableGrid6X3 = ((System.Windows.Controls.Grid)(target)); return; case 55: this.TableGrid6X4 = ((System.Windows.Controls.Grid)(target)); return; case 56: this.TableGrid6X5 = ((System.Windows.Controls.Grid)(target)); return; case 57: this.TableGrid6X6 = ((System.Windows.Controls.Grid)(target)); return; case 58: this.TableGrid6X7 = ((System.Windows.Controls.Grid)(target)); return; case 59: this.TableGrid6X8 = ((System.Windows.Controls.Grid)(target)); return; case 60: this.TableGrid6X9 = ((System.Windows.Controls.Grid)(target)); return; case 61: this.TableGrid6X10 = ((System.Windows.Controls.Grid)(target)); return; case 62: this.TableGrid7X1 = ((System.Windows.Controls.Grid)(target)); return; case 63: this.TableGrid7X2 = ((System.Windows.Controls.Grid)(target)); return; case 64: this.TableGrid7X3 = ((System.Windows.Controls.Grid)(target)); return; case 65: this.TableGrid7X4 = ((System.Windows.Controls.Grid)(target)); return; case 66: this.TableGrid7X5 = ((System.Windows.Controls.Grid)(target)); return; case 67: this.TableGrid7X6 = ((System.Windows.Controls.Grid)(target)); return; case 68: this.TableGrid7X7 = ((System.Windows.Controls.Grid)(target)); return; case 69: this.TableGrid7X8 = ((System.Windows.Controls.Grid)(target)); return; case 70: this.TableGrid7X9 = ((System.Windows.Controls.Grid)(target)); return; case 71: this.TableGrid7X10 = ((System.Windows.Controls.Grid)(target)); return; case 72: this.TableGrid8X1 = ((System.Windows.Controls.Grid)(target)); return; case 73: this.TableGrid8X2 = ((System.Windows.Controls.Grid)(target)); return; case 74: this.TableGrid8X3 = ((System.Windows.Controls.Grid)(target)); return; case 75: this.TableGrid8X4 = ((System.Windows.Controls.Grid)(target)); return; case 76: this.TableGrid8X5 = ((System.Windows.Controls.Grid)(target)); return; case 77: this.TableGrid8X6 = ((System.Windows.Controls.Grid)(target)); return; case 78: this.TableGrid8X7 = ((System.Windows.Controls.Grid)(target)); return; case 79: this.TableGrid8X8 = ((System.Windows.Controls.Grid)(target)); return; case 80: this.TableGrid8X9 = ((System.Windows.Controls.Grid)(target)); return; case 81: this.TableGrid8X10 = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }