-api-id | -api-type | ms.custom |
---|---|---|
P:Windows.UI.Xaml.Controls.TreeView.ItemContainerStyle |
winrt property |
RS5 |
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).
<TreeView>
<TreeView.ItemContainerStyle>
inlineStyle
</TreeView.ItemContainerStyle>
</TreeView>
- or -
<TreeView ItemContainerStyle="resourceReferenceToStyle"/>
- 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.
The style applied to the item containers. The default is null.