ItemContainerStyle Property

ComboBox.ItemContainerStyle Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the style applied to the container generated for each item in the combo box.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property ItemContainerStyle As Style
<ComboBox>
  <ComboBox.ItemContainerStyle>
    inlineStyle
  </ComboBox.ItemContainerStyle>
</ComboBox>
<ComboBox ItemContainerStyle="styleReference"/>

XAML Values

inlineStyle

A single Style object element.

styleReference

A StaticResource reference to a Style.

Property Value

Type: System.Windows.Style
The style applied to the container generated for each item in the combo box.

Dependency property identifier field: ItemContainerStyleProperty

You can use the ItemContainerStyle to provide a custom appearance for combo box items listed in the drop-down portion. This style does not apply to the selected item displayed in the text box.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft