GridViewRowPresenter.Content 속성

정의

행에 표시할 데이터 콘텐츠를 가져오거나 설정합니다.

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(Extensible Application Markup Language)의 일반적인 사용 GridViewRowPresenter 법은 컨트롤에 ControlTemplate 배치하는 것입니다. 템플릿은 Content 사용하여 컨트롤의 속성에 속성을 바인딩 합니다. 다음 예제에서는 컨트롤의 속성에 Content a 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

적용 대상