Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 1.4 KB

swipeitem_foreground.md

File metadata and controls

50 lines (27 loc) · 1.4 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.SwipeItem.Foreground
winrt property

Microsoft.UI.Xaml.Controls.SwipeItem.Foreground

-description

Gets or sets the brush that paints the text and icon of the item.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-property-value

The brush that paints the text and icon of the item.

-remarks

-see-also

-examples

-xaml-syntax

<SwipeItem Foreground="{StaticResource resourceName}"/>
<SwipeItem Foreground="colorString"/>

-xaml-values

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.