ComboBox.SelectionBoxItemTemplate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the item template of the selection box content.
public:
property System::Windows::DataTemplate ^ SelectionBoxItemTemplate { System::Windows::DataTemplate ^ get(); };
public System.Windows.DataTemplate SelectionBoxItemTemplate { get; }
member this.SelectionBoxItemTemplate : System.Windows.DataTemplate
Public ReadOnly Property SelectionBoxItemTemplate As DataTemplate
Property Value
An item template.
Examples
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 a complete sample, see Styling with ControlTemplates Sample.
<ContentPresenter x:Name="ContentSite"
IsHitTestVisible="False"
Content="{TemplateBinding SelectionBoxItem}"
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
Margin="3,3,23,3"
VerticalAlignment="Stretch"
HorizontalAlignment="Left">
</ContentPresenter>
Remarks
XAML Attribute Usage
<object property="{TemplateBinding SelectionBoxItemTemplate}"/>
Dependency Property Information
Identifier field | SelectionBoxItemTemplateProperty |
Metadata properties set to true |
None |
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET