Border.Background property

Applies to Windows and Windows Phone

Gets or sets the Brush that fills the background of the border.

Syntax


public Brush Background { get; set; }


<Border>
  <Border.Background>
    singleBrush
  </Border.Background>
</Border>



<Border Background="colorString"/>


XAML Values

singleBrush

Within opening and closing property elements for Border.Background, exactly one object element for an object that derives from Brush. This is typically one of the following classes: 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. See the XAML Values section in Color.

Property value

Type: Brush

The brush that fills the background.

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

Border

 

 

Show:
© 2014 Microsoft. All rights reserved.