Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1.13 KB

navigationview_menuitemcontainerstyle.md

File metadata and controls

52 lines (30 loc) · 1.13 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.NavigationView.MenuItemContainerStyle
winrt property

Microsoft.UI.Xaml.Controls.NavigationView.MenuItemContainerStyle

-description

Gets or sets the style that is used when rendering the menu item containers.

-property-value

The style applied to the item containers. The default is null.

-remarks

-see-also

-examples

-xaml-syntax

<NavigationView>
  <NavigationView.MenuItemContainerStyle>
    inlineStyle
  </NavigationView.MenuItemContainerStyle>
</NavigationView>
<NavigationView MenuItemContainerStyle="resourceReferenceToStyle"/>

-xaml-values

inlineStyle
inlineStyleA single Style object element. That Style would typically have multiple setters that set properties on the item container type being targeted. (For ListBox, that type is ListBoxItem.)
resourceReferenceToStyle
resourceReferenceToStyleA {StaticResource} markup extension reference to an existing Style from a XAML resource dictionary.