void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ToolBar = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 2: this.Canvas = ((System.Windows.Controls.Canvas)(target)); #line 18 "..\..\MainWindow.xaml" this.Canvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.Canvas_MouseMove); #line default #line hidden #line 18 "..\..\MainWindow.xaml" this.Canvas.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseDown); #line default #line hidden #line 18 "..\..\MainWindow.xaml" this.Canvas.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseUp); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainWindows = ((Server.View.MainView)(target)); return; case 2: this.laber = ((System.Windows.Controls.Label)(target)); return; case 3: this.laber1 = ((System.Windows.Controls.Label)(target)); return; case 4: this.laber2 = ((System.Windows.Controls.Label)(target)); return; case 5: this.laber3 = ((System.Windows.Controls.Label)(target)); return; case 6: this.laber4 = ((System.Windows.Controls.Label)(target)); return; case 7: this.laber5 = ((System.Windows.Controls.Label)(target)); return; case 8: this.button = ((System.Windows.Controls.Button)(target)); return; case 9: this.button1 = ((System.Windows.Controls.Button)(target)); return; case 10: this.set = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 11: this.laber6 = ((System.Windows.Controls.Label)(target)); return; case 12: this.textBox = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
public void TabControlParentTest() { TabPanel tabPanel = new TabPanel(); Assert.IsNull(tabPanel.TabControlParent); TabControl tabControl = new TabControl(); CreateAsyncTask(tabControl, () => Assert.AreEqual(tabControl.ElementTabPanelTop.TabControlParent, tabControl), () => Assert.AreEqual(tabControl.ElementTabPanelBottom.TabControlParent, tabControl), () => Assert.AreEqual(tabControl.ElementTabPanelLeft.TabControlParent, tabControl), () => Assert.AreEqual(tabControl.ElementTabPanelRight.TabControlParent, tabControl) ); EnqueueTestComplete(); }
/// <summary> /// When overridden in a derived class, is invoked whenever application code or /// internal processes (such as a rebuilding layout pass) call /// <see cref="M:System.Windows.Controls.Control.ApplyTemplate"/>. /// </summary> public override void OnApplyTemplate() { base.OnApplyTemplate(); tabRibbon = this; root = GetTemplateChild("LayoutRoot") as Grid; RibbonCollapse = root.Resources["RibbonCollapse"] as Storyboard; RibbonExpand = root.Resources["RibbonExpand"] as Storyboard; PushPin = GetTemplateChild("PushPin") as Button; tabPanel = GetTemplateChild("TabPanelTop") as TabPanel; templateTop = GetTemplateChild("TemplateTop") as FrameworkElement; if (templateTop != null) templateTop.MouseLeftButtonUp += templateTop_MouseLeftButtonUp; if (RibbonExpand != null) RibbonExpand.Completed += RibbonExpand_Completed; if (PushPin != null) PushPin.Click += PushPin_Click; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((WpfApplication1.MainWindow)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.tables = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; } this._contentLoaded = true; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); this.tabLeftButton = GetTemplateChild("TabLeftButtonTop") as RepeatButton; this.tabRightButton = GetTemplateChild("TabRightButtonTop") as RepeatButton; this.tabScrollViewer = GetTemplateChild("TabScrollViewerTop") as ScrollViewer; this.tabPanelTop = GetTemplateChild("TabPanelTop") as TabPanel; this.tabAddItemButton = GetTemplateChild("TabAddItemButton") as Button; if (this.tabLeftButton != null) this.tabLeftButton.Click += tabLeftButton_Click; if (this.tabRightButton != null) this.tabRightButton.Click += tabRightButton_Click; if (this.tabAddItemButton != null) this.tabAddItemButton.Click += tabAddItemButton_Click; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); _button = Template.FindName("HideGridButton", this) as Button; _tabPanel = Template.FindName("TabPanel", this) as TabPanel; _border = Template.FindName("ContentBorder", this) as Border; if (_button != null) _button.PreviewMouseUp += Button_Clicked; if (_tabPanel != null) { foreach (TabItem tabItem in _tabPanel.Children) { tabItem.PreviewMouseDown += TabItem_PreviewMouseDown; } _tabPanel.PreviewMouseWheel += TabControl_PreviewMouseWheel; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((WpfApplication1.MainWindow)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.tables = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ucDispositionList = ((LeadFormatDesigner.Presentation.ctlLeadFormatDesigner)(target)); return; case 2: this.cnvView = ((System.Windows.Controls.Canvas)(target)); return; case 3: this.CtlGrid = ((VMukti.CtlGrid.Presentation.ctlGrid)(target)); #line 15 "..\..\ctlLeadFormatDesigner.xaml" this.CtlGrid.btnEditClicked += new VMukti.CtlGrid.Presentation.ctlGrid.ButtonClicked(this.CtlGrid_btnEditClicked); #line default #line hidden #line 15 "..\..\ctlLeadFormatDesigner.xaml" this.CtlGrid.btnDeleteClicked += new VMukti.CtlGrid.Presentation.ctlGrid.ButtonClicked(this.CtlGrid_btnDeleteClicked); #line default #line hidden return; case 4: this.CtlGridChild = ((VMukti.CtlGrid.Presentation.ctlGrid)(target)); #line 16 "..\..\ctlLeadFormatDesigner.xaml" this.CtlGridChild.btnEditClicked += new VMukti.CtlGrid.Presentation.ctlGrid.ButtonClicked(this.CtlGridChild_btnEditClicked); #line default #line hidden #line 16 "..\..\ctlLeadFormatDesigner.xaml" this.CtlGridChild.btnDeleteClicked += new VMukti.CtlGrid.Presentation.ctlGrid.ButtonClicked(this.CtlGridChild_btnDeleteClicked); #line default #line hidden return; case 5: this.tbcDispositionList = ((System.Windows.Controls.TabControl)(target)); return; case 6: this.tbiDispositionListDetails = ((System.Windows.Controls.TabItem)(target)); return; case 7: this.lblLeadFormatName = ((System.Windows.Controls.Label)(target)); return; case 8: this.txtLeadFormatName = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.cmbFormatType = ((System.Windows.Controls.ComboBox)(target)); return; case 10: this.cmbExcel = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 11: this.cmbtxt = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 12: this.cmbCSV = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 13: this.txtDescription = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.btnNext = ((System.Windows.Controls.Button)(target)); return; case 15: this.btnUpdateLead = ((System.Windows.Controls.Button)(target)); return; case 16: this.tbiDispositions = ((System.Windows.Controls.TabItem)(target)); return; case 17: this.First = ((System.Windows.Controls.Canvas)(target)); return; case 18: this.lblFieldName = ((System.Windows.Controls.Label)(target)); return; case 19: this.cmbFieldName = ((System.Windows.Controls.ComboBox)(target)); return; case 20: this.btnAddNewField = ((System.Windows.Controls.Button)(target)); return; case 21: this.lblDefaultValue = ((System.Windows.Controls.Label)(target)); return; case 22: this.txtDefaultValue = ((System.Windows.Controls.TextBox)(target)); return; case 23: this.lblFieldStartPosition = ((System.Windows.Controls.Label)(target)); return; case 24: this.txtFieldStartPosition = ((System.Windows.Controls.TextBox)(target)); return; case 25: this.lblColumn = ((System.Windows.Controls.Label)(target)); return; case 26: this.cmbColumn = ((System.Windows.Controls.ComboBox)(target)); return; case 27: this.lblFieldLength = ((System.Windows.Controls.Label)(target)); return; case 28: this.txtFieldLength = ((System.Windows.Controls.TextBox)(target)); return; case 29: this.lblDelimiter = ((System.Windows.Controls.Label)(target)); return; case 30: this.cmbDelimiter = ((System.Windows.Controls.ComboBox)(target)); return; case 31: this.cmbComma = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 32: this.btnSave = ((System.Windows.Controls.Button)(target)); return; case 33: this.btnDone = ((System.Windows.Controls.Button)(target)); return; case 34: this.btnUpdateLeadDetail = ((System.Windows.Controls.Button)(target)); return; case 35: this.recTemp = ((System.Windows.Shapes.Rectangle)(target)); return; case 36: this.template = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 37: this.InnerCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 38: this.lblFieldName1 = ((System.Windows.Controls.Label)(target)); return; case 39: this.txtFieldName = ((System.Windows.Controls.TextBox)(target)); return; case 40: this.lblFieldType = ((System.Windows.Controls.Label)(target)); return; case 41: this.cmbFieldType = ((System.Windows.Controls.ComboBox)(target)); return; case 42: this.bigint = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 43: this.bit = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 44: this.@char = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 45: this.datetime = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 46: this.@decimal = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 47: this.@float = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 48: this.@int = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 49: this.varchar = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 50: this.lblFieldSize = ((System.Windows.Controls.Label)(target)); return; case 51: this.txtFieldSize = ((System.Windows.Controls.TextBox)(target)); return; case 52: this.btnSav = ((System.Windows.Controls.Button)(target)); return; case 53: this.btnClose = ((System.Windows.Controls.Button)(target)); return; case 54: this.lblFieldAvailable = ((System.Windows.Controls.Label)(target)); return; case 55: this.lstFieldNames = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ucDispositionList = ((LeadFormatDesigner.Presentation.ctlLeadFormatDesigner)(target)); return; case 2: this.cnvView = ((System.Windows.Controls.Canvas)(target)); return; case 3: this.CtlGrid = ((VMukti.CtlGrid.Presentation.ctlGrid)(target)); #line 15 "..\..\ctlLeadFormatDesigner.xaml" this.CtlGrid.btnEditClicked += new VMukti.CtlGrid.Presentation.ctlGrid.ButtonClicked(this.CtlGrid_btnEditClicked); #line default #line hidden #line 15 "..\..\ctlLeadFormatDesigner.xaml" this.CtlGrid.btnDeleteClicked += new VMukti.CtlGrid.Presentation.ctlGrid.ButtonClicked(this.CtlGrid_btnDeleteClicked); #line default #line hidden return; case 4: this.CtlGridChild = ((VMukti.CtlGrid.Presentation.ctlGrid)(target)); #line 16 "..\..\ctlLeadFormatDesigner.xaml" this.CtlGridChild.btnEditClicked += new VMukti.CtlGrid.Presentation.ctlGrid.ButtonClicked(this.CtlGridChild_btnEditClicked); #line default #line hidden #line 16 "..\..\ctlLeadFormatDesigner.xaml" this.CtlGridChild.btnDeleteClicked += new VMukti.CtlGrid.Presentation.ctlGrid.ButtonClicked(this.CtlGridChild_btnDeleteClicked); #line default #line hidden return; case 5: this.tbcDispositionList = ((System.Windows.Controls.TabControl)(target)); return; case 6: this.tbiDispositionListDetails = ((System.Windows.Controls.TabItem)(target)); return; case 7: this.lblLeadFormatName = ((System.Windows.Controls.Label)(target)); return; case 8: this.txtLeadFormatName = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.cmbFormatType = ((System.Windows.Controls.ComboBox)(target)); return; case 10: this.cmbExcel = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 11: this.cmbtxt = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 12: this.cmbCSV = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 13: this.txtDescription = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.btnNext = ((System.Windows.Controls.Button)(target)); return; case 15: this.btnUpdateLead = ((System.Windows.Controls.Button)(target)); return; case 16: this.tbiDispositions = ((System.Windows.Controls.TabItem)(target)); return; case 17: this.First = ((System.Windows.Controls.Canvas)(target)); return; case 18: this.lblFieldName = ((System.Windows.Controls.Label)(target)); return; case 19: this.cmbFieldName = ((System.Windows.Controls.ComboBox)(target)); return; case 20: this.btnAddNewField = ((System.Windows.Controls.Button)(target)); return; case 21: this.lblDefaultValue = ((System.Windows.Controls.Label)(target)); return; case 22: this.txtDefaultValue = ((System.Windows.Controls.TextBox)(target)); return; case 23: this.lblFieldStartPosition = ((System.Windows.Controls.Label)(target)); return; case 24: this.txtFieldStartPosition = ((System.Windows.Controls.TextBox)(target)); return; case 25: this.lblColumn = ((System.Windows.Controls.Label)(target)); return; case 26: this.cmbColumn = ((System.Windows.Controls.ComboBox)(target)); return; case 27: this.lblFieldLength = ((System.Windows.Controls.Label)(target)); return; case 28: this.txtFieldLength = ((System.Windows.Controls.TextBox)(target)); return; case 29: this.lblDelimiter = ((System.Windows.Controls.Label)(target)); return; case 30: this.cmbDelimiter = ((System.Windows.Controls.ComboBox)(target)); return; case 31: this.cmbComma = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 32: this.btnSave = ((System.Windows.Controls.Button)(target)); return; case 33: this.btnDone = ((System.Windows.Controls.Button)(target)); return; case 34: this.btnUpdateLeadDetail = ((System.Windows.Controls.Button)(target)); return; case 35: this.recTemp = ((System.Windows.Shapes.Rectangle)(target)); return; case 36: this.template = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 37: this.InnerCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 38: this.lblFieldName1 = ((System.Windows.Controls.Label)(target)); return; case 39: this.txtFieldName = ((System.Windows.Controls.TextBox)(target)); return; case 40: this.lblFieldType = ((System.Windows.Controls.Label)(target)); return; case 41: this.cmbFieldType = ((System.Windows.Controls.ComboBox)(target)); return; case 42: this.bigint = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 43: this.bit = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 44: this.@char = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 45: this.datetime = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 46: this.@decimal = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 47: this.@float = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 48: this.@int = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 49: this.varchar = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 50: this.lblFieldSize = ((System.Windows.Controls.Label)(target)); return; case 51: this.txtFieldSize = ((System.Windows.Controls.TextBox)(target)); return; case 52: this.btnSav = ((System.Windows.Controls.Button)(target)); return; case 53: this.btnClose = ((System.Windows.Controls.Button)(target)); return; case 54: this.lblFieldAvailable = ((System.Windows.Controls.Label)(target)); return; case 55: this.lstFieldNames = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }
public void LimitedWidth () { TabPanel t = new TabPanel (); for (int i = 0; i < 5; i++) { TabItem tab_item = new TabItem (); tab_item.Width = 100; t.Children.Add (tab_item); } t.Measure (new Size (100, double.PositiveInfinity)); Assert.AreEqual (t.DesiredSize.Width, 100, "1"); Assert.AreEqual (t.DesiredSize.Height, 25, "2"); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\DnevnikRada.xaml" ((KorisnickiInterfejs.DnevnikRada)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.btnPonedeljak = ((System.Windows.Controls.Button)(target)); #line 17 "..\..\DnevnikRada.xaml" this.btnPonedeljak.Click += new System.Windows.RoutedEventHandler(this.BtnPonedeljak_Click); #line default #line hidden return; case 3: this.btnUtorak = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\DnevnikRada.xaml" this.btnUtorak.Click += new System.Windows.RoutedEventHandler(this.BtnUtorak_Click); #line default #line hidden return; case 4: this.btnSreda = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\DnevnikRada.xaml" this.btnSreda.Click += new System.Windows.RoutedEventHandler(this.BtnSreda_Click); #line default #line hidden return; case 5: this.btnCetvrtak = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\DnevnikRada.xaml" this.btnCetvrtak.Click += new System.Windows.RoutedEventHandler(this.BtnCetvrtak_Click); #line default #line hidden return; case 6: this.btnPetak = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\DnevnikRada.xaml" this.btnPetak.Click += new System.Windows.RoutedEventHandler(this.BtnPetak_Click); #line default #line hidden return; case 7: this.tpPonedeljak = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 8: this.tbPonedeljak = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.tpUtorak = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 10: this.tbUtorak = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.tpSreda = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 12: this.tbSreda = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.tpCetvrtak = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 14: this.tbCetvrtak = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.tpPetak = ((System.Windows.Controls.Primitives.TabPanel)(target)); return; case 16: this.tbPetak = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.btnSacuvajDnevnik = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\DnevnikRada.xaml" this.btnSacuvajDnevnik.Click += new System.Windows.RoutedEventHandler(this.BtnSacuvajDnevnik_Click); #line default #line hidden return; } this._contentLoaded = true; }