NavigationView.MenuItemFromContainer(DependencyObject) 方法

定义

返回与指定的生成容器对应的项。

适用于 UWP 的等效 WinUI 2 APIMicrosoft.UI.Xaml.Controls.NavigationView.MenuItemFromContainerWindows 应用 SDK中的 WinUI (,请参阅Windows 应用 SDK命名空间) 。

public:
 virtual Platform::Object ^ MenuItemFromContainer(DependencyObject ^ container) = MenuItemFromContainer;
IInspectable MenuItemFromContainer(DependencyObject const& container);
public object MenuItemFromContainer(DependencyObject container);
function menuItemFromContainer(container)
Public Function MenuItemFromContainer (container As DependencyObject) As Object

参数

container
DependencyObject

与要返回的项对应的 DependencyObject

返回

Object

Platform::Object

IInspectable

包含的项;如果不包含项,则为容器。

适用于