NavigationView.MenuItemContainerStyleSelector 属性

定义

获取或设置对自定义 StyleSelector 逻辑类的引用。 StyleSelector 根据所显示对象的特征返回用于项容器的不同 Style 值。

StyleSelector MenuItemContainerStyleSelector();

void MenuItemContainerStyleSelector(StyleSelector value);
public StyleSelector MenuItemContainerStyleSelector { get; set; }
var styleSelector = navigationView.menuItemContainerStyleSelector;
navigationView.menuItemContainerStyleSelector = styleSelector;
Public Property MenuItemContainerStyleSelector As StyleSelector
<NavigationView MenuItemContainerStyleSelector="styleSelectorReference" />

属性值

自定义 StyleSelector 逻辑类。

适用于