NavigationView.ContainerFromMenuItem(Object) NavigationView.ContainerFromMenuItem(Object) NavigationView.ContainerFromMenuItem(Object) NavigationView.ContainerFromMenuItem(Object) Method

Definition

Returns the container corresponding to the specified menu item.

public : DependencyObject ContainerFromMenuItem(Platform::Object item)
DependencyObject ContainerFromMenuItem(winrt::Windows::Foundation::IInspectable item) const;
public DependencyObject ContainerFromMenuItem(Object item)
Public Function ContainerFromMenuItem(item As Object) As DependencyObject

Parameters

item
Object Object

The menu item to retrieve the container for.

Returns

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