ContentPresenter.Foreground 속성

정의

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

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

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

속성 값

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

적용 대상

추가 정보