Class DropDownMenuItem
Class representing an item in a dropdown menu.
Inheritance
DropDownMenuItem
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_Button", Type = typeof(Button))]
public class DropDownMenuItem : Control, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Fields
View SourceCaptionProperty
The caption property
Declaration
public static readonly DependencyProperty CaptionProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CommandParameterProperty
The command parameter property
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CommandProperty
The command property
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IconStyleProperty
The icon style property
Declaration
public static readonly DependencyProperty IconStyleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
PreventMouseDoubleClickFromBubblingProperty
The property to set to prevent mouse double click from bubbling
Declaration
public static readonly DependencyProperty PreventMouseDoubleClickFromBubblingProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceCaption
Gets or sets the caption of the item.
Declaration
public string Caption { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Command
Gets or sets the command of the item.
Declaration
public ICommand Command { get; set; }
Property Value
| Type | Description |
|---|---|
| ICommand |
CommandParameter
Gets or sets the command parameter for the item's command.
Declaration
public object CommandParameter { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
IconStyle
Gets or sets the icon style.
Declaration
public Style IconStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| Style |
PreventMouseDoubleClickFromBubbling
Determines, wether the control should prevent double clicks from bubbling up.
Declaration
public bool PreventMouseDoubleClickFromBubbling { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceOnApplyTemplate()
Applies the template. Looks for the TemplatePart PART_Button to disable the MouseDoubleClick bubbling.
Declaration
public override void OnApplyTemplate()
Overrides
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | DropDownMenuItem style needs a PART_Button |
SetFocus()
Declaration
public void SetFocus()