ComboBox.SelectionBoxItem 属性    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取在选择框中显示的项。
public:
 property System::Object ^ SelectionBoxItem { System::Object ^ get(); };
	public object SelectionBoxItem { get; }
	member this.SelectionBoxItem : obj
	Public ReadOnly Property SelectionBoxItem As Object
	属性值
选定项。
示例
以下示例将 Content a ContentPresenter 属性绑定到该 SelectionBoxItem 属性。 是 ContentPresenter 其中 ControlTemplate 一 ComboBox部分。
有关完整示例,请参阅 ControlTemplates 示例的样式设置。
<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>
	注解
使用ControlTemplateComboBox此属性显示所选项。ComboBox 若要获取外部ControlTemplate的ComboBox选定项,请使用属性Selector.SelectedItem而不是此属性。
XAML 属性用法
<object property="{TemplateBinding SelectionBoxItem}"/>  
依赖项属性信息
| 标识符字段 | SelectionBoxItemProperty | 
元数据属性设置为 true | 
无 |