Class NavigationViewItem
Defines a
Inherited Members
Namespace: Legerity.Windows.Elements.WinUI
Assembly: Legerity.WinUI.dll
Syntax
public class NavigationViewItem : WindowsElementWrapper
Constructors
| Improve this Doc View SourceNavigationViewItem(NavigationView, NavigationViewItem, WindowsElement)
Initializes a new instance of the NavigationViewItem class.
Declaration
public NavigationViewItem(NavigationView parentNavigationView, NavigationViewItem parentItem, WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
NavigationView | parentNavigationView | The parent NavigationView. |
NavigationViewItem | parentItem | The parent NavigationViewItem. |
WindowsElement | element | The |
NavigationViewItem(NavigationView, WindowsElement)
Initializes a new instance of the NavigationViewItem class.
Declaration
public NavigationViewItem(NavigationView parentNavigationView, WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
NavigationView | parentNavigationView | The parent NavigationView. |
WindowsElement | element | The |
NavigationViewItem(NavigationViewItem, WindowsElement)
Initializes a new instance of the NavigationViewItem class.
Declaration
public NavigationViewItem(NavigationViewItem parentItem, WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
NavigationViewItem | parentItem | The parent NavigationViewItem. |
WindowsElement | element | The |
NavigationViewItem(WindowsElement)
Initializes a new instance of the NavigationViewItem class.
Declaration
public NavigationViewItem(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<NavigationViewItem> ChildMenuItems { get; }
Property Value
Type | Description |
---|---|
IEnumerable<NavigationViewItem> |
ParentItem
Gets the original parent NavigationViewItem reference object.
Declaration
public NavigationViewItem ParentItem { get; }
Property Value
Type | Description |
---|---|
NavigationViewItem |
ParentNavigationView
Gets the original parent NavigationView reference object.
Declaration
public NavigationView ParentNavigationView { get; }
Property Value
Type | Description |
---|---|
NavigationView |
Methods
| Improve this Doc View SourceClickChildOption(String)
Clicks on a child menu option with the specified item name.
Declaration
public virtual NavigationViewItem ClickChildOption(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item to click. |
Returns
Type | Description |
---|---|
NavigationViewItem | The clicked NavigationViewItem. |
ClickChildOptionByPartialName(String)
Clicks on a child menu option with the specified partial item name.
Declaration
public virtual NavigationViewItem ClickChildOptionByPartialName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The partial name of the item to click. |
Returns
Type | Description |
---|---|
NavigationViewItem | The clicked NavigationViewItem. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to NavigationViewItem)
Allows conversion of a
Declaration
public static implicit operator NavigationViewItem(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
NavigationViewItem | The NavigationViewItem. |
Implicit(RemoteWebElement to NavigationViewItem)
Allows conversion of a
Declaration
public static implicit operator NavigationViewItem(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
NavigationViewItem | The NavigationViewItem. |
Implicit(WindowsElement to NavigationViewItem)
Allows conversion of a
Declaration
public static implicit operator NavigationViewItem(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
NavigationViewItem | The NavigationViewItem. |