Class MenuBarItem
Defines a
Inherited Members
Namespace: Legerity.Windows.Elements.WinUI
Assembly: Legerity.WinUI.dll
Syntax
public class MenuBarItem : WindowsElementWrapper
Constructors
| Improve this Doc View SourceMenuBarItem(MenuBar, WindowsElement)
Initializes a new instance of the MenuBarItem class.
Declaration
public MenuBarItem(MenuBar parentMenuBar, WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
MenuBar | parentMenuBar | The parent MenuBar. |
WindowsElement | element | The |
MenuBarItem(WindowsElement)
Initializes a new instance of the MenuBarItem class.
Declaration
public MenuBarItem(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceChildMenuItems
Gets the UI components associated with the child menu items.
Declaration
public virtual IEnumerable<MenuFlyoutItem> ChildMenuItems { get; }
Property Value
Type | Description |
---|---|
IEnumerable<MenuFlyoutItem> |
ChildMenuSubItems
Gets the UI components associated with the child menu sub-items.
Declaration
public virtual IEnumerable<MenuFlyoutSubItem> ChildMenuSubItems { get; }
Property Value
Type | Description |
---|---|
IEnumerable<MenuFlyoutSubItem> |
ParentMenuBar
Gets the original parent MenuBar reference object.
Declaration
public virtual MenuBar ParentMenuBar { get; }
Property Value
Type | Description |
---|---|
MenuBar |
Methods
| Improve this Doc View SourceClickChildOption(String)
Clicks on a child menu option with the specified item name.
Declaration
public virtual MenuFlyoutItem ClickChildOption(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item to click. |
Returns
Type | Description |
---|---|
MenuFlyoutItem | The clicked MenuFlyoutItem. |
ClickChildOptionByPartialName(String)
Clicks on a child menu option with the specified partial item name.
Declaration
public virtual MenuFlyoutItem ClickChildOptionByPartialName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The partial name of the item to click. |
Returns
Type | Description |
---|---|
MenuFlyoutItem | The clicked MenuFlyoutItem. |
ClickChildSubOption(String)
Clicks on a child menu sub option with the specified item name.
Declaration
public virtual MenuFlyoutSubItem ClickChildSubOption(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the sub-item to click. |
Returns
Type | Description |
---|---|
MenuFlyoutSubItem | The clicked MenuFlyoutSubItem. |
ClickChildSubOptionByPartialName(String)
Clicks on a child menu sub option with the specified partial item name.
Declaration
public virtual MenuFlyoutSubItem ClickChildSubOptionByPartialName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The partial name of the sub-item to click. |
Returns
Type | Description |
---|---|
MenuFlyoutSubItem | The clicked MenuFlyoutSubItem. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to MenuBarItem)
Allows conversion of a
Declaration
public static implicit operator MenuBarItem(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
MenuBarItem | The MenuBarItem. |
Implicit(RemoteWebElement to MenuBarItem)
Allows conversion of a
Declaration
public static implicit operator MenuBarItem(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
MenuBarItem | The MenuBarItem. |
Implicit(WindowsElement to MenuBarItem)
Allows conversion of a
Declaration
public static implicit operator MenuBarItem(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
MenuBarItem | The MenuBarItem. |