void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CancelButton = ((Fluent.Button)(target)); return; case 2: this.OKButton = ((Fluent.Button)(target)); return; case 3: this.Grid1 = ((System.Windows.Controls.Grid)(target)); return; case 4: this.RadioButton12 = ((Fluent.RadioButton)(target)); return; case 5: this.AMPMCheckBox = ((Fluent.CheckBox)(target)); return; case 6: this.RadioButton24 = ((Fluent.RadioButton)(target)); return; case 7: this.SecCheckBox = ((Fluent.CheckBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.StackPanel1 = ((System.Windows.Controls.StackPanel)(target)); return; case 2: this.O_Button = ((Fluent.RadioButton)(target)); return; case 3: this.O_RadioButton = ((Fluent.RadioButton)(target)); return; case 4: this.O_CheckBox = ((Fluent.RadioButton)(target)); return; case 5: this.O_TextBlock = ((Fluent.RadioButton)(target)); return; case 6: this.CancelButton = ((Fluent.Button)(target)); return; case 7: this.OKButton = ((Fluent.Button)(target)); return; case 8: this.Button1 = ((Fluent.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ribbonWindow = ((WpfSchedule.MainWindow)(target)); #line 7 "..\..\MainWindow.xaml" this.ribbonWindow.SizeChanged += new System.Windows.SizeChangedEventHandler(this.ribbonWindow_SizeChanged); #line default #line hidden return; case 2: this.ribbon = ((Fluent.Ribbon)(target)); return; case 3: this.r1 = ((Fluent.RadioButton)(target)); #line 35 "..\..\MainWindow.xaml" this.r1.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked); #line default #line hidden return; case 4: this.r2 = ((Fluent.RadioButton)(target)); #line 39 "..\..\MainWindow.xaml" this.r2.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked); #line default #line hidden return; case 5: this.r3 = ((Fluent.RadioButton)(target)); #line 43 "..\..\MainWindow.xaml" this.r3.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked); #line default #line hidden return; case 6: this.r4 = ((Fluent.RadioButton)(target)); #line 47 "..\..\MainWindow.xaml" this.r4.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked); #line default #line hidden return; case 7: this.panelGroups = ((System.Windows.Controls.WrapPanel)(target)); return; case 8: this.labelGroup = ((System.Windows.Controls.Label)(target)); return; case 9: this.btnWeekLeft = ((System.Windows.Controls.Button)(target)); #line 73 "..\..\MainWindow.xaml" this.btnWeekLeft.Click += new System.Windows.RoutedEventHandler(this.btnWeekLeft_Click); #line default #line hidden return; case 10: this.labelWeekState = ((System.Windows.Controls.Label)(target)); return; case 11: this.btnWeekRight = ((System.Windows.Controls.Button)(target)); #line 88 "..\..\MainWindow.xaml" this.btnWeekRight.Click += new System.Windows.RoutedEventHandler(this.btnWeekRight_Click); #line default #line hidden return; case 12: this.myScrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; case 13: this.panelSchedule = ((System.Windows.Controls.WrapPanel)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Gets control which represents shortcut item. /// This item MUST be syncronized with the original /// and send command to original one control. /// </summary> /// <returns>Control which represents shortcut item</returns> public virtual FrameworkElement CreateQuickAccessItem() { RadioButton button = new RadioButton(); RibbonControl.Bind(this, button, "IsChecked", IsCheckedProperty, BindingMode.TwoWay); button.Click += ((sender, e) => RaiseEvent(e)); RibbonControl.BindQuickAccessItem(this, button); return button; }