SelectionBoxItemTemplate Property

ComboBox.SelectionBoxItemTemplate Property


Gets the item template of the selection box content.

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

public DataTemplate SelectionBoxItemTemplate { get; private set; }

Property Value

Type: System.Windows.DataTemplate

An item template.

<object property="{TemplateBinding SelectionBoxItemTemplate}"/>

Identifier field


Metadata properties set to true


The following example binds the Content property of a ContentPresenter to the SelectionBoxItemTemplate property. The ContentPresenter is part of the ControlTemplate for the ComboBox. For the complete sample, see Styling with ControlTemplates Sample.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft