Represents a mini-toolbar control, optionally used within a Bar
- Inheritance:
-
object
Visual
UIElement
Framework
Element Control ItemsControl object
- Implements:
-
IPopup
Anchor IOrientedElement
Constructors
MiniToolBar()
Initializes a new instance of the Mini
Properties
CanUseMultiRowLayout
Gets or sets whether the items can be arranged in a multi-row layout.
Property Value
- bool:
true
if the items can be arranged in a multi-row layout; otherwise,false
. The default value isfalse
.
HasDropShadow
Gets or sets whether the mini-toolbar displays a drop shadow.
Property Value
- bool:
true
if the mini-toolbar displays a drop shadow; otherwise,false
. The default value isfalse
.
SeparatorBrush
Gets or sets the Brush to render separators.
UserInterfaceDensity
Gets or sets a User
Property Value
- User
Interface :Density A User
Interface that indicates how compact or spacious the UI should appear. The default value is Compact.Density
Methods
ClearContainerForItemOverride(DependencyObject, object)
When overridden in a derived class, undoes the effects of the Prepare
Parameter | Type | Description |
---|---|---|
element | DependencyObject | The container element. |
item | object | The item. |
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Returns
- DependencyObject:
The element that is used to display the given item.
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own container.
Parameter | Type | Description |
---|---|---|
item | object | The item to check. |
Returns
- bool:
true
if the item is (or is eligible to be) its own container; otherwise,false
.
OnContextMenuOpening(ContextMenuEventArgs)
Invoked whenever an unhandled Context
Parameter | Type | Description |
---|---|---|
e | Context |
The Routed |
OnCreateAutomationPeer()
Returns class-specific Automation
Returns
- Automation
Peer : The type-specific Automation
Peer implementation.
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
Invoked just before the Is
Parameter | Type | Description |
---|---|---|
e | DependencyPropertyChangedEventArgs | A System.Windows.DependencyPropertyChangedEventArgs that contains the event data. |
OnMouseDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Parameter | Type | Description |
---|---|---|
e | Mouse |
The Mouse |
OnPreviewMouseDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Parameter | Type | Description |
---|---|---|
e | Mouse |
The Mouse |
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
Parameter | Type | Description |
---|---|---|
element | DependencyObject | Element used to display the specified item. |
item | object | Specified item. |
ToString()
Returns the string representation of this object.
Returns
- string:
The string representation of this object.
Fields
CanUseMultiRowLayoutProperty
Identifies the Can
HasDropShadowProperty
Identifies the Has
SeparatorBrushProperty
Identifies the Separator
UserInterfaceDensityProperty
Identifies the User