Panel.Background Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets a Brush that is used to fill the panel.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<panel> <panel.Background> singleBrush </panel.Background> </panel>
<panel Background="colorString"/>
XAML Values
Property Value
Type: System.Windows.Media.BrushThe brush used to fill the panel. The default is null.
Dependency property identifier field: BackgroundProperty
The Background property determines the background color of the Panel.
The Background property specifies a Brush for the object. A Brush can represent a solid color, a linear or radial gradient, an image, or an applied video brush.
Some brush types (SolidColorBrush) support a XAML attribute syntax, whereas other brush types (ImageBrush, LinearGradientBrush, RadialGradientBrush) support only an object element syntax. This is why two versions of XAML syntax are shown for this property.