private static void OverflowVisiblePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { OutlookBar bar = (OutlookBar)d; bool newValue = (bool)e.NewValue; bar.OnOverflowVisibleChanged(newValue); }
private void buttonClickedEvent(object sender, RoutedEventArgs e) { OutlookBar bar = OutlookBar; ToggleButton b = e.OriginalSource as ToggleButton; if (b != null) { b.IsChecked = true; } if (bar != null) { bar.SelectedSection = this; } OnClick(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.NavigationBar = ((Odyssey.Controls.OutlookBar)(target)); return; case 2: this.tabControl = ((FabTab.FabTabControl)(target)); return; case 3: this.Tab1 = ((Framework.devControls.DevTabItemEx)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Intro = ((WpfFront.Views.IntroView)(target)); return; case 2: this.bar = ((Odyssey.Controls.OutlookBar)(target)); return; case 3: this.bar2 = ((Odyssey.Controls.OutlookBar)(target)); return; case 4: this.label = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
private static void SelectedSectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { OutlookBar bar = (OutlookBar)d; bar.OnSelectedSectionChanged((OutlookSection)e.OldValue, (OutlookSection)e.NewValue); }
private static void SelectedIndexPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { OutlookBar bar = (OutlookBar)d; bar.ApplySections(); }
private static void PopupVisiblePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { OutlookBar bar = (OutlookBar)d; bar.OnPopupVisibleChanged((bool)e.NewValue); }
private static void MaxNumberOfButtonsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { OutlookBar bar = (OutlookBar)d; bar.ApplySections(); }
private static void MaximizedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { OutlookBar bar = (OutlookBar)d; bar.OnMaximizedChanged((bool)e.NewValue); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ribbonTab1 = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target)); return; case 2: this.ribbonGroup1 = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target)); return; case 3: this.ribbonButton1 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 4: this.ribbonButton2 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 5: this.ribbonButton3 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 6: this.ribbonGroup2 = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target)); return; case 7: this.ribbonButton4 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 8: this.ribbonButton5 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 9: this.ribbonTab2 = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target)); return; case 10: this.ribbonGroup4 = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target)); return; case 11: this.ribbonButton8 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 12: this.ribbonButton9 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 13: this.ribbonButton10 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 14: this.ribbonGroup5 = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target)); return; case 15: this.ribbonButton11 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 16: this.ribbonButton12 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 17: this.ribbonGroup6 = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target)); return; case 18: this.ribbonButton13 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 19: this.ribbonButton14 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 20: this.ribbonTab3 = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target)); return; case 21: this.ribbonGroup8 = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target)); return; case 22: this.ribbonButton18 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 23: this.ribbonButton19 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 24: this.ribbonButton20 = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 25: this.bar = ((Odyssey.Controls.OutlookBar)(target)); return; case 26: this.EmployeesContent = ((System.Windows.Controls.ContentControl)(target)); return; case 27: this.CustomersContent = ((System.Windows.Controls.ContentControl)(target)); return; case 28: this.ProductsContent = ((System.Windows.Controls.ContentControl)(target)); return; case 29: this.DocumentsRegion = ((AvalonDock.DocumentPane)(target)); return; } this._contentLoaded = true; }