-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.ContentPresenter.BorderBrush |
winrt property |
Gets or sets a brush that describes the border fill of the content presenter.
<ContentPresenter BorderBrush="{StaticResource resourceName}"/>
- or -
<ContentPresenter BorderBrush="colorString"/>
- or -
<ContentPresenter>
<ContentPresenter.BorderBrush>singleBrush</ContentPresenter.BorderBrush>
</ContentPresenter>
- resourceName
- resourceNameThe resource name (x:Key attribute value) of an existing XAML resource that defines a brush. This is the recommended way to specify Brush values in XAML if you have any intention of using the same colors or brushes in more than one part of your UI. See Remarks in Brush or ResourceDictionary and XAML resource references.
- colorString
- colorStringThe 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.
- singleBrush
- singleBrushWithin opening and closing property elements, exactly one object element for an object that derives from Brush. This is typically one of the following classes: LinearGradientBrush, ImageBrush, SolidColorBrush.
The BorderThickness value must be greater than 0 in order to see the BorderBrush value take effect.