Interface IMenuItemProperties
Defines read-only properties for a menu item.
public interface IMenuItemProperties : IMenuProperties, ICollectionObserver<object>, INotifyPropertyChanged, IBaseObjectWithId, IBaseObject
Properties
- Checked
Gets a value indicating whether the menu item is checked.
- CommandSource
Gets the command source associated with the menu item.
- DisabledImage
Gets the image displayed when the menu item is disabled.
- Enabled
Gets a value indicating whether the menu item is enabled.
- HasItems
Gets a value indicating whether the child items collection contains any elements.
- Image
Gets the image displayed for the menu item.
- IsShortcutEnabled
Gets a value indicating whether the shortcut is enabled for the menu item.
- Role
Gets the role of the menu item.
- Shortcut
Gets the shortcut key gesture associated with the menu item.
- SvgImage
Gets the SVG image associated with the menu item.
- SvgImageSize
Gets the size of the SVG image.
- Text
Gets the text displayed for the menu item.
- Visible
Gets a value indicating whether the menu item is visible.
Methods
- GetRealImage(VisualControlState, bool?, Control?)
Retrieves the real image associated with the specified visual control state.
- RaiseClick()
Simulates a click action, triggering any associated event handlers or behaviors.
- RaiseClosed()
Raises the "Closed" event to notify subscribers that the menu item has been closed.
- RaiseHighlighted()
Raises the "Highlighted" event to notify subscribers that an item has been highlighted.
- RaiseOpened()
Raises the "Opened" event to notify subscribers that the menu item has been opened.
Events
- Changed
Occurs when the state of a menu item changes.