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