Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.41 KB

treeview_itemcontainerstyle.md

File metadata and controls

46 lines (31 loc) · 1.41 KB
-api-id -api-type ms.custom
P:Windows.UI.Xaml.Controls.TreeView.ItemContainerStyle
winrt property
RS5

Windows.UI.Xaml.Controls.TreeView.ItemContainerStyle

-description

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

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeView.ItemContainerStyle (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-xaml-syntax

<TreeView>
  <TreeView.ItemContainerStyle>
    inlineStyle
  </TreeView.ItemContainerStyle>
</TreeView>
- or -
<TreeView ItemContainerStyle="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 TreeView, that type is TreeViewItem.)
resourceReferenceToStyle
resourceReferenceToStyleA {StaticResource} markup extension reference to an existing Style from a XAML resource dictionary.

-property-value

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

-remarks

-see-also

-examples