Skip to main content
A newer version of this page is available. .

Bar Properties

A bar which is displayed on-screen using a BarContainerControl object.
Name Description
AllowCollapse

Gets or sets whether a bar can be collapsed by double-clicking on the bar’s drag widget. This is a dependency property.

AllowCustomizationMenu Gets or sets if the current Bar‘s customization context menu is enabled. This is a dependency property.
AllowDrop Gets or sets a value that indicates whether this element can be used as the target of a drag-and-drop operation. Inherited from ContentElement.
AllowHide

Gets or sets whether the bar’s visibility can be changed by an end-user. This is a dependency property.

AllowQuickCustomization Gets or sets whether the bar provides the Quick Customization Button, opening the customization menu.
AllowRemove Gets or sets whether end-users can remove a bar item from its container. This is a dependency property.
AllowRename

Gets or sets whether a bar can be renamed via the Customization Window. This is a dependency property.

AreAnyTouchesCaptured Gets a value that indicates whether at least one touch is captured to this element. Inherited from ContentElement.
AreAnyTouchesCapturedWithin Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree. Inherited from ContentElement.
AreAnyTouchesDirectlyOver Gets a value that indicates whether at least one touch is pressed over this element. Inherited from ContentElement.
AreAnyTouchesOver Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree. Inherited from ContentElement.
Background Gets or sets the brush used to paint the BarItem’s background. This is a dependency property.
BarItemDisplayMode Gets or sets whether the content, glyph or both are displayed in the bar items.
BarItemHorzIndent

Gets or sets the horizontal interval between the bar’s links. This is a dependency property.

BarItemsAlignment Gets or sets the default alignment of all bar item links that reside within the current bar.
BarItemVertIndent

Gets or sets the vertical interval between the bar’s links. This is a dependency property.

BindingGroup Gets or sets the BindingGroup that is used for the element. Inherited from FrameworkContentElement.
BorderBrush Gets or sets the brush used to paint the borders of the Bar Control. This is a dependency property.
BorderThickness Gets or sets the thickness of the Bar‘s border. This is a dependency property.
Caption

Gets or sets the bar’s caption. This is a dependency property.

CommandBindings Gets a collection of CommandBinding objects that are associated with this element. Inherited from ContentElement.
ContextMenu Gets or sets the context menu element that should appear whenever the context menu is requested via user interface (UI) from within this element. Inherited from FrameworkContentElement.
CornerRadius Gets or sets the Bar‘s corner radius. This is a dependency property.
CreatedByCustomizationDialog Gets or sets whether this Bar was created by an end-user during the runtime customization.
Cursor Gets or sets the cursor that displays when the mouse pointer is over this element. Inherited from FrameworkContentElement.
CustomItemsGlyphSize

Gets or sets the size of the glyph for the bar items within the current bar. The CustomItemsGlyphSize property affects the glyph size if the bar item’s GlyphSize property is set to Custom. This is a dependency property.

Inherited from BarItemLinkHolderBase.
DataContext Gets or sets the data context for an element when it participates in data binding. Inherited from FrameworkContentElement.
DefaultBarSize This member supports the internal infrastructure, and is not intended to be used directly from your code.
DefaultStyleKey protected Gets or sets the key to use to find the style template for this control in themes. Inherited from FrameworkContentElement.
DependencyObjectType Gets the DependencyObjectType that wraps the CLR type of this instance. Inherited from DependencyObject.
Dispatcher Gets the Dispatcher this DispatcherObject is associated with. Inherited from DispatcherObject.
DockInfo Contains information on the position where the bar is docked.
Focusable Gets or sets a value that indicates whether the element can receive focus. Inherited from ContentElement.
FocusVisualStyle Gets or sets an object that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus. Inherited from FrameworkContentElement.
ForceCursor Gets or sets a value indicating whether this FrameworkContentElement should force the user interface (UI) to render the cursor as declared by this instance’s Cursor property. Inherited from FrameworkContentElement.
Foreground Gets or sets the brush used to paint foreground of BarItem descedants. This is a dependency property.
GlyphSize

Gets or sets whether a small or large image is used by bar item links displayed in the current bar. This is a dependency property.

HasAnimatedProperties Gets a value that indicates whether this element has any animated properties. Inherited from ContentElement.
HideWhenEmpty Gets or sets whether the current bar is automatically hidden when it does not contain any items. This is a dependency property.
InputBindings Gets the collection of input bindings that are associated with this element. Inherited from ContentElement.
InputScope Gets or sets the context for input used by this FrameworkContentElement. Inherited from FrameworkContentElement.
IsAllowHide Gets whether the bar’s visibility can be changed by an end-user.
IsAllowQuickCustomization Gets whether the bar provides the Quick Customization Button.
IsCollapsed

Gets or sets whether the bar is collapsed. This is a dependency property.

IsEnabled Gets or sets a value that indicates whether this element is enabled in the user interface (UI). Inherited from ContentElement.
IsEnabledCore protected Gets a value that becomes the return value of IsEnabled in derived classes. Inherited from ContentElement.
IsFocused Gets a value that determines whether this element has logical focus. Inherited from ContentElement.
IsInitialized Gets a value indicating whether this element has been initialized, either by being loaded as Extensible Application Markup Language (XAML), or by explicitly having its EndInit() method called. Inherited from FrameworkContentElement.
IsInputMethodEnabled Gets a value that indicates whether an input method system, such as an Input Method Editor (IME), is enabled for processing the input to this element. Inherited from ContentElement.
IsKeyboardFocused Gets a value that indicates whether this element has keyboard focus. Inherited from ContentElement.
IsKeyboardFocusWithin Gets a value that indicates whether keyboard focus is anywhere within the element or child elements. Inherited from ContentElement.
IsLoaded Gets a value indicating whether this element has been loaded for presentation. Inherited from FrameworkContentElement.
IsMainMenu

Gets or sets whether the bar represents the main menu. This is a dependency property.

IsMouseCaptured Gets a value that indicates whether the mouse is captured by this element. Inherited from ContentElement.
IsMouseCaptureWithin Gets a value that determines whether mouse capture is held by this element or by child elements in its element tree. Inherited from ContentElement.
IsMouseDirectlyOver Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. Inherited from ContentElement.
IsMouseOver Gets a value that indicates whether the mouse pointer is located over this element (including visual child elements, or its control compositing). Inherited from ContentElement.
IsMultiLine

Gets or sets whether bar links are arranged into several lines when their total width exceeds the width of the bar. This is a dependency property.

IsRemoved This member supports the internal infrastructure, and is not intended to be used directly from your code.
IsSealed Gets a value that indicates whether this instance is currently sealed (read-only). Inherited from DependencyObject.
IsStatusBar

Gets or sets whether the bar represents the status bar. This is a dependency property.

IsStylusCaptured Gets a value that indicates whether the stylus is captured to this element. Inherited from ContentElement.
IsStylusCaptureWithin Gets a value that determines whether stylus capture is held by this element, including child elements and control compositing. Inherited from ContentElement.
IsStylusDirectlyOver Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. Inherited from ContentElement.
IsStylusOver Gets a value that indicates whether the stylus is located over this element (including visual child elements). Inherited from ContentElement.
IsUseWholeRow Gets whether the bar is stretched to match the container’s width.
ItemLinks Provides access to the collection of links owned by the current container. Inherited from BarItemLinkHolderBase.
ItemLinksSource Gets or sets an object that provides information to generate and initialize item links for this BarItemLinkHolderBase. This is a dependency property. Inherited from BarItemLinkHolderBase.
ItemLinksSourceElementGeneratesUniqueBarItem Gets or sets whether each reference to a data object in an BarItemLinkHolderBase.ItemLinksSource for this BarItemLinkHolderBase should generate a unique BarItem, whether this data object was previously referenced. This is a dependency property. Inherited from BarItemLinkHolderBase.
Items Provides access to a bar item collection, whose related bar item links are displayed within this BarItemLinkHolderBase object. Inherited from BarItemLinkHolderBase.
ItemStyle

Gets or sets the style applied to a BarItem object defined as the BarItemLinkHolderBase.ItemTemplate‘s content. This is a dependency property.

Inherited from BarItemLinkHolderBase.
ItemStyleSelector Gets or sets an object that chooses a style applied to objects generated with the BarItemLinkHolderBase.ItemLinksSource collection. This is a dependency property. Inherited from BarItemLinkHolderBase.
ItemTemplate

Gets or sets the template used to visualize elements stored in the BarItemLinkHolderBase.ItemLinksSource collection.

This is a dependency property.

Inherited from BarItemLinkHolderBase.
ItemTemplateSelector Gets or sets an object that chooses a template used to visualize objects stored as elements in the BarItemLinkHolderBase.ItemLinksSource collection. This is a dependency property. Inherited from BarItemLinkHolderBase.
Language Gets or sets localization/globalization language information that applies to an individual element. Inherited from FrameworkContentElement.
Manager

Gets or sets the current BarManager. This is a dependency property.

Inherited from BarItemLinkHolderBase.
Margin Gets or sets the outer indents around the Bar. This is a dependency property.
Name Gets or sets the identifying name of the element. The name provides an instance reference so that programmatic code-behind, such as event handler code, can refer to an element once it is constructed during parsing of XAML. Inherited from FrameworkContentElement.
OverridesDefaultStyle Gets or sets a value indicating whether this element incorporates style properties from theme styles. Inherited from FrameworkContentElement.
Padding Gets or sets the inner indents around the Bar. This is a dependency property
Parent Gets the parent in the logical tree for this element. Inherited from FrameworkContentElement.
Resources Gets or sets the current locally-defined resource dictionary. Inherited from FrameworkContentElement.
RotateWhenVertical

Gets or sets whether the captions of the bar’s links are rotated when the bar is vertically docked. This is a dependency property.

ShowDragWidget

Gets or sets whether a drag widget is displayed at the left of the bar, allowing the bar to be dragged using the mouse. This is a dependency property.

ShowSizeGrip

Gets or sets if a Bar object has a visible size grip. This is a dependency property.

Style Gets or sets the style to be used by this element. Inherited from FrameworkContentElement.
Tag Gets or sets an arbitrary object value that can be used to store custom information about this element. Inherited from FrameworkContentElement.
TemplatedParent Gets a reference to the template parent of this element. This property is not relevant if the element was not created through a template. Inherited from FrameworkContentElement.
ToolTip Gets or sets the tool-tip object that is displayed for this element in the user interface (UI). Inherited from FrameworkContentElement.
TouchesCaptured Gets all touch devices that are captured to this element. Inherited from ContentElement.
TouchesCapturedWithin Gets all touch devices that are captured to this element or any child elements in its visual tree. Inherited from ContentElement.
TouchesDirectlyOver Gets all touch devices that are over this element. Inherited from ContentElement.
TouchesOver Gets all touch devices that are over this element or any child elements in its visual tree. Inherited from ContentElement.
UseWholeRow Gets or sets whether the bar is stretched to match the container’s width.
Visible

Gets or sets whether the current container is visible. This is a dependency property.

Inherited from BarItemLinkHolderBase.
See Also