NavigationView.ContainerFromMenuItem(Object) Method

Definition

Returns the container corresponding to the specified menu item.

public:
 virtual DependencyObject ^ ContainerFromMenuItem(Platform::Object ^ item) = ContainerFromMenuItem;
DependencyObject ContainerFromMenuItem(IInspectable const & item);
public DependencyObject ContainerFromMenuItem(object item);
function containerFromMenuItem(item)
Public Function ContainerFromMenuItem (item As Object) As DependencyObject

Parameters

item
Object

The menu item to retrieve the container for.

Returns

DependencyObject

A container that corresponds to the specified menu item, if the item has a container and exists in the collection; otherwise, null.

Applies to