Class SfRibbonMenuItem
Represents class for RibbonMenuItem
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Controls.SfRibbon
Assembly: Syncfusion.SfRibbon.UWP.dll
Syntax
[ClassReference(IsReviewed = false)]
public class SfRibbonMenuItem : HeaderedItemsControl, IDisposable
Constructors
SfRibbonMenuItem()
Initializes a new instance of the SfRibbonMenuItem class.
Declaration
public SfRibbonMenuItem()
Fields
CommandParameterProperty
Using a DependencyProperty as the backing store for CommandParameter. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
CommandProperty
Using a DependencyProperty as the backing store for Command. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ContentProperty
Using a DependencyProperty as the backing store for Content. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IsExpandedProperty
Using a DependencyProperty as the backing store for IsExpanded. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
LabelProperty
Using a DependencyProperty as the backing store for Label. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty LabelProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
Command
Gets or sets the command that will be executed when the command source is invoked.
Declaration
[ClassReference(IsReviewed = false)]
public ICommand Command { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
CommandParameter
Gets or sets the representing a user defined data value that can be passed to the command when it is executed.
Declaration
[ClassReference(IsReviewed = false)]
public object CommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
Content
Gets or sets the Content
Declaration
[ClassReference(IsReviewed = false)]
public object Content { get; set; }
Property Value
Type |
---|
System.Object |
HasItems
Gets a value indicating whether this instance contains items
Declaration
[ClassReference(IsReviewed = false)]
public bool HasItems { get; }
Property Value
Type |
---|
System.Boolean |
IsExpanded
Gets or sets a value indicating whether this instance is expanded.
Declaration
[ClassReference(IsReviewed = false)]
public bool IsExpanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if this instance is expanded; otherwise, false |
Label
Gets or sets the label
Declaration
public string Label { get; set; }
Property Value
Type |
---|
System.String |
Methods
Dispose()
dispose method
Declaration
public void Dispose()
Dispose(Boolean)
method for disposing
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | disposing parameter |
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type | Description |
---|---|
Windows.UI.Xaml.DependencyObject | returns Dependency Object |
IsItemItsOwnContainerOverride(Object)
Determines if the specified item is (or is eligible to be) its own container
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | object item |
Returns
Type | Description |
---|---|
System.Boolean | returns boolean |
OnApplyTemplate()
Called when the pointer device initiates a Press action within this element.
Declaration
protected override void OnApplyTemplate()
OnPointerEntered(PointerRoutedEventArgs)
Called when a pointer enters the area of this element.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer Routed Event parameter |
OnPointerExited(PointerRoutedEventArgs)
Called when a pointer leaves the area of this element.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer Routed Event parameter |
OnPointerPressed(PointerRoutedEventArgs)
Method for pointer pressed
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer Routed Event parameter |
OnPointerReleased(PointerRoutedEventArgs)
Called when the pointer device that previously initiated a Press action is released
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer Routed Event parameter |
PrepareContainerForItemOverride(DependencyObject, Object)
Method for prepare container for item over ride
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | element | Dependency Object |
System.Object | item | object item |
Events
Click
Represents Click event
Declaration
[ClassReference(IsReviewed = false)]
public event RoutedEventHandler Click
Event Type
Type |
---|
Windows.UI.Xaml.RoutedEventHandler |