SwipeItem.Background Property

Definition

Gets or sets a brush that provides the background of the control.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.SwipeItem.Background (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property Brush ^ Background { Brush ^ get(); void set(Brush ^ value); };
Brush Background();

void Background(Brush value);
public Brush Background { get; set; }
var brush = swipeItem.background;
swipeItem.background = brush;
Public Property Background As Brush
<SwipeItem Background="{StaticResource resourceName}"/>
- or -
<SwipeItem Background="colorString"/>

Property Value

The brush that provides the background of the control.

Applies to