-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.TreeView.ItemContainerStyle |
winrt property |
Gets or sets the style that is used when rendering the item containers.
The style applied to the item containers. The default is null.
<TreeView>
<TreeView.ItemContainerStyle>
inlineStyle
</TreeView.ItemContainerStyle>
</TreeView>
<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.