ContentPresenter.Background 속성

정의

ContentPresenter에서 처리하는 콘텐츠의 배경에 적용할 브러시를 가져오거나 설정합니다.

public:
 property Brush ^ Background { Brush ^ get(); void set(Brush ^ value); };
Brush Background();

void Background(Brush value);
public Brush Background { get; set; }
var brush = contentPresenter.background;
contentPresenter.background = brush;
Public Property Background As Brush
<ContentPresenter Background="{StaticResource resourceName}"/>
- or -
<ContentPresenter Background="colorString"/>
- or -
<ContentPresenter>
  <ContentPresenter.Background>singleBrush</ContentPresenter.Background>
</ContentPresenter>

속성 값

내용의 배경 브러시로 사용되는 브러시입니다. 기본값은 순수 코드 관점에서 null 브러시이지만 시스템 스타일 기본값은 흰색 ( 밝은 테마의 경우) 또는 검은색 ( 어두운 테마의 경우)으로 설정됩니다.

적용 대상