Freigeben über


HeaderedItemsControl.ItemContainerStyle Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the Style that is applied to the container element generated for each item.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)

Syntax

'Declaration
Public Property ItemContainerStyle As Style
public Style ItemContainerStyle { get; set; }
<sdk:HeaderedItemsControl>
  <sdk:HeaderedItemsControl.ItemContainerStyle>
    inlineStyle
  </sdk:HeaderedItemsControl.ItemContainerStyle>
</sdk:HeaderedItemsControl>
<sdk:HeaderedItemsControl ItemContainerStyle="styleReference"/>

XAML Values

Property Value

Type: System.Windows.Style
The Style that is applied to the container element generated for each item. The default is nulla null reference (Nothing in Visual Basic).

Remarks

XAML usage for properties of HeaderedItemsControl also exists on TreeView. In this case, the object element you set the properties on is sdk:TreeView rather than sdk:HeaderedItemsControl.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.