Class MiniToolbar
Represents a Ribbon MiniToolbar control.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class MiniToolbar : Popup
Remarks
MiniToolbar class represents Ribbon MiniToolbar control for displaying UIElements in separate popup.
Examples
This example shows how to create a MiniToolbar in XAML.
<ribbon:MiniToolbar x:Key="MiniToolbar">
<ribbon:RibbonComboBox Width="100" IsEditable="True" >
<ComboBoxItem>Arial</ComboBoxItem>
<ComboBoxItem>Tahoma</ComboBoxItem>
<ComboBoxItem>Verdana</ComboBoxItem>
</ribbon:RibbonComboBox>
<ribbon:RibbonButton SmallIcon="/SampleImages/TextHighlight.png"/>
</ribbon:MiniToolbar>
This example shows how to create a MiniToolbar in C#.
MiniToolbar toolBar = new MiniToolbar();
toolBar.PlacementTarget = Editor;
Constructors
MiniToolbar()
Initializes a new instance of the MiniToolbar class.
Declaration
public MiniToolbar()
Fields
TemplateProperty
Identifies the Template for the control. This is a dependency property.
Declaration
public static readonly DependencyProperty TemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
CanHide
Gets or sets a value indicating whether this instance can hide.
Declaration
protected bool CanHide { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Items
Gets the collection of MiniToolbar child elements.
Declaration
public ItemCollection Items { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.ItemCollection | Type: System.Windows.Controls.ItemCollection Collection of child elements. |
Template
Gets or sets a control template.
Declaration
public ControlTemplate Template { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.ControlTemplate | Type: System.Windows.Controls.ControlTemplate The template that defines the appearance of the MiniToolbar. |
Methods
AssociateWith(UIElement)
Associates MiniToolbar with UIElement for the right click purpose.
Declaration
public void AssociateWith(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | element | UIElement which is associated with MiniToolbar. |
Hide()
Hides the MiniToolbar popup.
Declaration
public void Hide()
OnGotMouseCapture(MouseEventArgs)
Invoked when an unhandled Mouse.GotMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnGotMouseCapture(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The MouseEventArgs that contains the event data. |
OnInitialized(EventArgs)
This method is invoked whenever IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
OnLostMouseCapture(MouseEventArgs)
Invoked when an unhandled Mouse.LostMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnLostMouseCapture(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | TheMouseEventArgs that contains event data. |
OnOpened(EventArgs)
Responds to the condition in which the value of the IsOpen property changes from false to true.
Declaration
protected override void OnOpened(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The event arguments. |
Show()
Shows the MiniToolbar popup.
Declaration
public void Show()