Panel::Background Property
Gets or sets a Brush that is used to fill the panel.
Namespace: System.Windows.Controls
Assembly: System.Windows (in System.Windows.dll)
<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 nullptr.
Dependency property identifier field: BackgroundProperty
The Background property determines the background color of the Panel. For information about setting the background and other properties for the Silverlight plug-in, see How to: Add Silverlight to a Web Page by Using HTML.
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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.