ContentPresenter.Background ContentPresenter.Background ContentPresenter.Background ContentPresenter.Background Property

Definition

Gets or sets the Brush to apply to the background of content handled by the ContentPresenter.

public : Brush Background { get; set; }
Brush Background();

void Background(Brush background);
public Brush Background { get; set; }
Public ReadWrite Property Background As Brush
<ContentPresenter Background="{StaticResource resourceName}"/>

Property Value

The brush used as the background brush for the contents. The default is a null brush from a pure code perspective, but system style defaults set this to White (for Light theme) or Black (for Dark theme).