Search Results for

    Show / Hide Table of Contents

    Class NavigationViewItem

    Defines a wrapper for the WinUI NavigationViewItem control.

    Inheritance
    System.Object
    WindowsElementWrapper
    NavigationViewItem
    Inherited Members
    WindowsElementWrapper.Driver
    WindowsElementWrapper.VerifyDriverElementShown(By, Nullable<TimeSpan>)
    WindowsElementWrapper.VerifyDriverElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Windows.Elements.WinUI
    Assembly: Legerity.WinUI.dll
    Syntax
    public class NavigationViewItem : WindowsElementWrapper

    Constructors

    | Improve this Doc View Source

    NavigationViewItem(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 reference.

    | Improve this Doc View Source

    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 reference.

    | Improve this Doc View Source

    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 reference.

    | Improve this Doc View Source

    NavigationViewItem(WindowsElement)

    Initializes a new instance of the NavigationViewItem class.

    Declaration
    public NavigationViewItem(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The reference.

    Properties

    | Improve this Doc View Source

    ChildMenuItems

    Gets the UI components associated with the child menu items.

    Declaration
    public virtual IEnumerable<NavigationViewItem> ChildMenuItems { get; }
    Property Value
    Type Description
    IEnumerable<NavigationViewItem>
    | Improve this Doc View Source

    ParentItem

    Gets the original parent NavigationViewItem reference object.

    Declaration
    public NavigationViewItem ParentItem { get; }
    Property Value
    Type Description
    NavigationViewItem
    | Improve this Doc View Source

    ParentNavigationView

    Gets the original parent NavigationView reference object.

    Declaration
    public NavigationView ParentNavigationView { get; }
    Property Value
    Type Description
    NavigationView

    Methods

    | Improve this Doc View Source

    ClickChildOption(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.

    | Improve this Doc View Source

    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 Source

    Implicit(AppiumWebElement to NavigationViewItem)

    Allows conversion of a to the NavigationViewItem without direct casting.

    Declaration
    public static implicit operator NavigationViewItem(AppiumWebElement element)
    Parameters
    Type Name Description
    AppiumWebElement element

    The .

    Returns
    Type Description
    NavigationViewItem

    The NavigationViewItem.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to NavigationViewItem)

    Allows conversion of a to the NavigationViewItem without direct casting.

    Declaration
    public static implicit operator NavigationViewItem(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The .

    Returns
    Type Description
    NavigationViewItem

    The NavigationViewItem.

    | Improve this Doc View Source

    Implicit(WindowsElement to NavigationViewItem)

    Allows conversion of a to the NavigationViewItem without direct casting.

    Declaration
    public static implicit operator NavigationViewItem(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The .

    Returns
    Type Description
    NavigationViewItem

    The NavigationViewItem.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps