ContentPresenter.BorderBrush Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a brush that describes the border fill of the content presenter.
public:
property Brush ^ BorderBrush { Brush ^ get(); void set(Brush ^ value); };
Brush BorderBrush();
void BorderBrush(Brush value);
public Brush BorderBrush { get; set; }
var brush = contentPresenter.borderBrush;
contentPresenter.borderBrush = brush;
Public Property BorderBrush As Brush
<ContentPresenter BorderBrush="{StaticResource resourceName}"/>
- or -
<ContentPresenter BorderBrush="colorString"/>
- or -
<ContentPresenter>
<ContentPresenter.BorderBrush>singleBrush</ContentPresenter.BorderBrush>
</ContentPresenter>
Property Value
The brush that is used to fill the content presenter'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.