GridViewRowPresenter.Content 属性    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置要在行中显示的数据内容。
public:
 property System::Object ^ Content { System::Object ^ get(); void set(System::Object ^ value); };
	public object Content { get; set; }
	member this.Content : obj with get, set
	Public Property Content As Object
	属性值
表示行内容的对象。
注解
可扩展应用程序标记语言 (XAML) 的典型用法 GridViewRowPresenter 是将其 ControlTemplate 放置在 控件的 中。 模板使用 TemplateBinding 标记扩展将 Content 属性绑定到控件的属性。 下面的示例演示如何将 Content 的 GridViewRowPresenter 属性绑定到 Content 控件的 ListViewItem 属性。
<ControlTemplate x:Key="StronglyRecommended" 
                 TargetType='{x:Type ListViewItem}'>
  <StackPanel Background="Beige">
    <GridViewRowPresenter Content="{TemplateBinding Content}"
       Columns="{TemplateBinding GridView.ColumnCollection}"/>
    <TextBlock Background="LightBlue" Text="Strongly Recommended" />
  </StackPanel>
</ControlTemplate>
依赖项属性信息
| 标识符字段 | ContentProperty | 
元数据属性设置为 true | 
AffectsMeasure |