2 instantiations of ToolBar
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10341bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ToolBar(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1611case KnownElements.ToolBar: o = new System.Windows.Controls.ToolBar(); break;
118 references to ToolBar
PresentationFramework (118)
src\Framework\System\Windows\Automation\Peers\ToolBarAutomationPeer.cs (1)
21public ToolBarAutomationPeer(ToolBar owner): base(owner)
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (4)
86if ((child != null) && ToolBar.GetIsOverflowItem(child) && !(child is Separator)) 222private ToolBar ToolBar 224get { return TemplatedParent as ToolBar; } 231ToolBar tb = ToolBar;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (12)
71OverflowMode overflowMode = ToolBar.GetOverflowMode(child); 93ToolBar.SetIsOverflowItem(child, BooleanBoxes.FalseBox); 171ToolBar.SetIsOverflowItem(child, BooleanBoxes.FalseBox); 194ToolBar.SetIsOverflowItem(child, BooleanBoxes.TrueBox); 277ToolBar toolbar = ToolBar; 280toolbar.SetValue(ToolBar.HasOverflowItemsPropertyKey, hasAlwaysOverflowItems || hasAsNeededOverflowItems); 338if (TemplatedParent is ToolBar && !HasNonDefaultValue(OrientationProperty)) 342binding.Path = new PropertyPath(ToolBar.OrientationProperty); 381ToolBar.SetIsOverflowItem(child, BooleanBoxes.FalseBox); 526private ToolBar ToolBar 528get { return TemplatedParent as ToolBar; } 535ToolBar tb = ToolBar;
src\Framework\System\Windows\Controls\ToolBar.cs (32)
70ToolTipService.IsEnabledProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceToolTipIsEnabled))); 72DefaultStyleKeyProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(typeof(ToolBar))); 73_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ToolBar)); 75IsTabStopProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); 76FocusableProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); 77KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 78KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 79KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 80FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 82EventManager.RegisterClassHandler(typeof(ToolBar), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true); 83EventManager.RegisterClassHandler(typeof(ToolBar), ButtonBase.ClickEvent, new RoutedEventHandler(_OnClick)); 111typeof(ToolBar), 125ToolBarTray toolBarTray = ((ToolBar) d).ToolBarTray; 149typeof(ToolBar), 173typeof(ToolBar), 197typeof(ToolBar), 219ToolBar tb = (ToolBar)d; 232ToolBar tb = (ToolBar) d; 254ToolBar toolBar = (ToolBar) element; 312typeof(ToolBar), 341typeof(ToolBar), 387typeof(ToolBar), 398ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; 705ToolBar toolBar = (ToolBar)sender; 718ToolBar toolBar = (ToolBar)e;
src\Framework\System\Windows\Controls\ToolBarTray.cs (50)
112Collection<ToolBar> toolbarCollection = ((ToolBarTray)d).ToolBars; 115toolbarCollection[i].CoerceValue(ToolBar.OrientationProperty); 185public Collection<ToolBar> ToolBars 196private class ToolBarCollection : Collection<ToolBar> 203protected override void InsertItem(int index, ToolBar toolBar) 212protected override void SetItem(int index, ToolBar toolBar) 214ToolBar currentToolBar = Items[index]; 232ToolBar currentToolBar = this[index]; 248ToolBar currentToolBar = this[i]; 288ToolBar toolBar = value as ToolBar; 291throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(ToolBar)), "value"); 375List<ToolBar> band = _bands[bandIndex].Band; 380ToolBar toolBar = band[toolBarIndex]; 392ToolBar toolBar = band[toolBarIndex]; 440List<ToolBar> band = _bands[bandIndex].Band; 451ToolBar toolBar = band[toolBarIndex]; 528ToolBar toolBar = thumb.TemplatedParent as ToolBar; 562List<ToolBar> band = _bands[currentBand].Band; 576ToolBar prevToolBar = band[toolBarIndex - 1]; 624ToolBar nextToolBar = band[toolBarIndex + 1]; 663List<ToolBar> oldBand = _bands[currentBand].Band; 667ToolBar currentToolBar = oldBand[i]; 678private Point TransformPointToToolBar(ToolBar toolBar, Point point) 689private void ShrinkToolBars(List<ToolBar> band, int startIndex, int endIndex, double shrinkAmount) 695ToolBar toolBar = band[i]; 712ToolBar toolBar = band[i]; 727private double ToolBarsTotalMinimum(List<ToolBar> band, int startIndex, int endIndex) 737private void ExpandToolBars(List<ToolBar> band, int startIndex, int endIndex, double expandAmount) 743ToolBar toolBar = band[i]; 760ToolBar toolBar = band[i]; 775private double ToolBarsTotalMaximum(List<ToolBar> band, int startIndex, int endIndex) 785private void MoveToolBar(ToolBar toolBar, int newBandNumber, double position) 790List<ToolBar> newBand = _bands[newBandNumber].Band; 803ToolBar currentToolBar = newBand[i]; 857Collection<ToolBar> toolbarCollection = ToolBars; 868List<ToolBar> band = _bands[bandIndex].Band; 871ToolBar toolBar = band[toolBarIndex]; 887Collection<ToolBar> toolbarCollection = ToolBars; 890List<ToolBar> band = _bands[bandIndex].Band; 893ToolBar toolBar = band[toolBarIndex]; 904private void InsertBand(ToolBar toolBar, int toolBarIndex) 928Collection<ToolBar> toolbarCollection = ToolBars; 930ToolBar toolBar = toolbarCollection[startIndex]; 943private void InsertToolBar(ToolBar toolBar, List<ToolBar> band) 972public List<ToolBar> Band 983private List<ToolBar> _band = new List<ToolBar>();
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
761case 669: t = () => typeof(ToolBar); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (7)
5902Type type = typeof(System.Windows.Controls.ToolBar); 5904this.GetXamlType(typeof(System.Windows.Controls.ToolBar)), // DeclaringType 5910bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ToolBar)target).Items; }; 5957typeof(System.Collections.ObjectModel.Collection<System.Windows.Controls.ToolBar>), // type 8159Type type = typeof(System.Windows.Controls.ToolBar); 8160DependencyProperty dp = System.Windows.Controls.ToolBar.OrientationProperty; 8162this.GetXamlType(typeof(System.Windows.Controls.ToolBar)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10339typeof(System.Windows.Controls.ToolBar),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6213case KnownElements.ToolBar: t = typeof(System.Windows.Controls.ToolBar); break;
src\Framework\System\Windows\SystemKeyConverter.cs (1)
199return typeof(ToolBar);
src\Framework\System\Windows\SystemResourceKey.cs (8)
1746return ToolBar.ButtonStyleKey; 1749return ToolBar.ToggleButtonStyleKey; 1752return ToolBar.SeparatorStyleKey; 1755return ToolBar.CheckBoxStyleKey; 1758return ToolBar.RadioButtonStyleKey; 1761return ToolBar.ComboBoxStyleKey; 1764return ToolBar.TextBoxStyleKey; 1767return ToolBar.MenuStyleKey;