Grid.BorderBrush Property

Definition

Gets or sets a brush that describes the border fill of the panel.

C#
public Brush BorderBrush { get; set; }
XAML
<Grid BorderBrush="{StaticResource resourceName}"/>
- or -
<Grid BorderBrush="colorString"/>
- or -
<Grid>
  <Grid.BorderBrush>singleBrush</Grid.BorderBrush>
</Grid>

Property Value

The brush that is used to fill the panel's border. The default is null, (a null brush) which is evaluated as Transparent for rendering.

Remarks

The BorderThickness value must be greater than 0 in order to see the BorderBrush value take effect.

Applies to

Produkt Verzie
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6