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 ブラシですが、システム スタイルの既定値は、 これを白 ( ライト テーマの場合) または ( ダーク テーマの場合) に設定します。

適用対象