Panel.Background property

Applies to Windows and Windows Phone

Gets or sets a Brush that is used to fill the panel.

Syntax


public Brush Background { get; set; }


<panel>
  <panel.Background>
    singleBrush
  </panel.Background>
</panel>


<panel Background="colorString"/>

XAML Values

singleBrush

Within opening and closing property elements for object.Background, exactly one object element for an object that derives from Brush. The object element can be one of the following: LinearGradientBrush, ImageBrush, SolidColorBrush.

colorString

The Color for a SolidColorBrush expressed as an attribute string. This can be a named color, an RGB value, or an ScRGB value. RGB or ScRGB may also specify alpha information.

Property value

Type: Brush

The brush used to fill the panel. The default is null.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Panel

 

 

Show:
© 2014 Microsoft