Export (0) Print
Expand All

HeaderedItemsControl.ItemContainerStyle Property

Silverlight

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)

public Style ItemContainerStyle { get; set; }
<sdk:HeaderedItemsControl>
  <sdk:HeaderedItemsControl.ItemContainerStyle>
    inlineStyle
  </sdk:HeaderedItemsControl.ItemContainerStyle>
</sdk:HeaderedItemsControl>
<sdk:HeaderedItemsControl ItemContainerStyle="styleReference"/>

XAML Values

inlineStyle

A single Style object element. See Inline Styles and Templates.

styleReference

A StaticResource reference to a Style that defines the appearance of the header.

Property Value

Type: System.Windows.Style
The Style that is applied to the container element generated for each item. The default is null.

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.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show:
© 2014 Microsoft