Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1.06 KB

treeview_itemcontainerstyle.md

File metadata and controls

52 lines (30 loc) · 1.06 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.TreeView.ItemContainerStyle
winrt property

Microsoft.UI.Xaml.Controls.TreeView.ItemContainerStyle

-description

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

-property-value

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

-remarks

-see-also

-examples

-xaml-syntax

<TreeView>
  <TreeView.ItemContainerStyle>
    inlineStyle
  </TreeView.ItemContainerStyle>
</TreeView>
<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.