MiniToolBar Class
Represents a mini-toolbar control that can be used with the MiniToolBarService.
public class MiniToolBar : ItemsControlBase, IKeyTipTarget, ILogicalParent, IVariantControl
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl ItemsControlBase object
- Implements:
- IKeyTipTarget ILogicalParent IVariantControl
Remarks
For detailed documentation on this control's features and how to use them, please see the MiniToolBar documentation topic.
Constructors
MiniToolBar()
Initializes an instance of the class.
public MiniToolBar()
Properties
HasDropShadow
Gets or sets whether the mini-toolbar has a drop-shadow.
public bool HasDropShadow { get; set; }
Property Value
- bool:
true
if the mini-toolbar has a drop-shadow; otherwise,false
.
InitialOpacity
Gets or sets the initial opacity of the mini-toolbar when it is displayed.
public double InitialOpacity { get; set; }
Property Value
- double:
The initial opacity of the mini-toolbar when it is displayed. The default value is
0.25
.
ItemVariantSize
Gets a VariantSize that specifies the variant size of contained controls based on the panel's current VariantSize.
public VariantSize ItemVariantSize { get; }
Property Value
- VariantSize:
A VariantSize that specifies the variant size of contained controls based on the panel's current VariantSize.
Methods
OnItemsChanged(NotifyCollectionChangedEventArgs)
Invoked when the Items
property changes.
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | NotifyCollectionChangedEventArgs | A NotifyCollectionChangedEventArgs that contains the event data. |
OnPreviewMouseDown(MouseButtonEventArgs)
Invoked when an unhandled Mouse.PreviewMouseDownEvent attached event is raised on this element. Implement this method to add class handling for this event.
protected override void OnPreviewMouseDown(MouseButtonEventArgs e)
Parameter | Type | Description |
---|---|---|
e | MouseButtonEventArgs | A MouseButtonEventArgs that contains the event data. |
OnValidateItems(IList)
Invoked when the specified IList of items needs to be validated for inclusion in this ItemsControl.
protected override void OnValidateItems(IList items)
Parameter | Type | Description |
---|---|---|
items | IList | The IList of items to validate. |
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameter | Type | Description |
---|---|---|
element | DependencyObject | The System.Windows.DependencyObject that is the wrapper element. |
item | object | The item that is being wrapped. |
Fields
HasDropShadowProperty
Identifies the HasDropShadow dependency property. This field is read-only.
public static readonly DependencyProperty HasDropShadowProperty
InitialOpacityProperty
Identifies the InitialOpacity
dependency property. This field is read-only.
public static readonly DependencyProperty InitialOpacityProperty
ItemVariantSizeProperty
Identifies the ItemVariantSize dependency property. This field is read-only.
public static readonly DependencyProperty ItemVariantSizeProperty
Inherited Members
- ItemsControlBase.ClickEvent
- ItemsControlBase.PreviewClickEvent
- ItemsControlBase.ScreenTipClosingEvent
- ItemsControlBase.ScreenTipOpeningEvent
- ItemsControlBase.CommandProperty
- ItemsControlBase.CommandParameterProperty
- ItemsControlBase.CommandTargetProperty
- ItemsControlBase.ContextProperty
- ItemsControlBase.HasImageProperty
- ItemsControlBase.HasLabelProperty
- ItemsControlBase.IdProperty
- ItemsControlBase.ImageSourceLargeProperty
- ItemsControlBase.ImageSourceSmallProperty
- ItemsControlBase.IsHighlightedProperty
- ItemsControlBase.KeyTipAccessTextProperty
- ItemsControlBase.LabelProperty
- ItemsControlBase.ScreenTipDescriptionProperty
- ItemsControlBase.ScreenTipFooterProperty
- ItemsControlBase.ScreenTipHeaderProperty
- ItemsControlBase.ScreenTipHelpUriProperty
- ItemsControlBase.ScreenTipImageSourceProperty
- ItemsControlBase.VariantSizeProperty
- ItemsControlBase.CoerceCommandParameter(DependencyObject, object)
- ItemsControlBase.OnClick(ExecuteRoutedEventArgs)
- ItemsControlBase.OnCommandChanged(ICommand, ICommand)
- ItemsControlBase.OnContextChanged(ControlContext, ControlContext)
- ItemsControlBase.OnCreateAutomationPeer()
- ItemsControlBase.OnKeyTipAccessed(string)
- ItemsControlBase.OnPreviewClick(ExecuteRoutedEventArgs)
- ItemsControlBase.OnPropertyChanged(DependencyPropertyChangedEventArgs)
- ItemsControlBase.OnScreenTipClosing(RoutedEventArgs)
- ItemsControlBase.OnScreenTipOpening(RoutedEventArgs)
- ItemsControlBase.OnVariantSizeChanged(VariantSize, VariantSize)
- ItemsControlBase.RaiseClickEvent(ExecuteRoutedEventArgs)
- ItemsControlBase.UpdateCanExecute()
- ItemsControlBase.CanUpdateCanExecuteWhenHidden
- ItemsControlBase.Command
- ItemsControlBase.CommandParameter
- ItemsControlBase.CommandTarget
- ItemsControlBase.Context
- ItemsControlBase.HasImage
- ItemsControlBase.HasLabel
- ItemsControlBase.Id
- ItemsControlBase.ImageSourceLarge
- ItemsControlBase.ImageSourceSmall
- ItemsControlBase.IsHighlighted
- ItemsControlBase.KeyTipAccessText
- ItemsControlBase.Label
- ItemsControlBase.ScreenTipDescription
- ItemsControlBase.ScreenTipFooter
- ItemsControlBase.ScreenTipHeader
- ItemsControlBase.ScreenTipHelpUri
- ItemsControlBase.ScreenTipImageSource
- ItemsControlBase.VariantSize
- ItemsControlBase.Click
- ItemsControlBase.PreviewClick
- ItemsControlBase.ScreenTipClosing
- ItemsControlBase.ScreenTipOpening