SwipeItem SwipeItem SwipeItem SwipeItem Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents an individual command in a SwipeControl.

public : class SwipeItem : DependencyObject, ISwipeItempublic class SwipeItem : DependencyObject, ISwipeItemPublic Class SwipeItem Inherits DependencyObject Implements ISwipeItem// You can use this class in JavaScript.
<SwipeItem .../>
-or-
<SwipeItem ...>

  content

</SwipeItem>

Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Inherited Members

Inherited methods

Inherited properties

Constructors

SwipeItem() SwipeItem() SwipeItem() SwipeItem()

Prerelease. Initializes a new instance of the SwipeItem class.

public : SwipeItem()public SwipeItem()Public Sub New()// You can use this method in JavaScript.

Properties

Background Background Background Background

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

public : Brush Background { get; set; }public Brush Background { get; set; }Public ReadWrite Property Background As Brush// You can use this property in JavaScript.
<SwipeItem Background="{StaticResource resourceName}"/>

Value
Brush Brush Brush Brush

The brush that provides the background of the control.

BackgroundProperty BackgroundProperty BackgroundProperty BackgroundProperty

Prerelease. Identifies the Background dependency property.

public : static DependencyProperty BackgroundProperty { get; }public static DependencyProperty BackgroundProperty { get; }Public Static ReadOnly Property BackgroundProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Background dependency property.

BehaviorOnInvoked BehaviorOnInvoked BehaviorOnInvoked BehaviorOnInvoked

Prerelease. Gets or sets a value that indicates how a SwipeControl behaves after this item is invoked.

public : SwipeBehaviorOnInvoked BehaviorOnInvoked { get; set; }public SwipeBehaviorOnInvoked BehaviorOnInvoked { get; set; }Public ReadWrite Property BehaviorOnInvoked As SwipeBehaviorOnInvoked// You can use this property in JavaScript.
<SwipeItem BehaviorOnInvoked="swipeBehaviorOnInvokedMemberName" />

Value
SwipeBehaviorOnInvoked SwipeBehaviorOnInvoked SwipeBehaviorOnInvoked SwipeBehaviorOnInvoked

A value that indicates how a SwipeControl behaves after this item is invoked. The default is Auto.

BehaviorOnInvokedProperty BehaviorOnInvokedProperty BehaviorOnInvokedProperty BehaviorOnInvokedProperty

Prerelease. Identifies the BehaviorOnInvoked dependency property.

public : static DependencyProperty BehaviorOnInvokedProperty { get; }public static DependencyProperty BehaviorOnInvokedProperty { get; }Public Static ReadOnly Property BehaviorOnInvokedProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the BehaviorOnInvoked dependency property.

Command Command Command Command

Prerelease. Gets or sets the command to execute when this item is invoked.

public : ICommand Command { get; set; }public ICommand Command { get; set; }Public ReadWrite Property Command As ICommand// You can use this property in JavaScript.
<SwipeItem Command="commandReference"/>

Value
ICommand ICommand ICommand ICommand

The command to execute when this item is invoked. The default is null.

CommandParameter CommandParameter CommandParameter CommandParameter

Prerelease. Gets or sets the parameter to pass to the Command property.

public : PlatForm::Object CommandParameter { get; set; }public object CommandParameter { get; set; }Public ReadWrite Property CommandParameter As object// You can use this property in JavaScript.
<SwipeItem>

  <SwipeItem.CommandParameter>

    object

  </SwipeItem.CommandParameter>

</SwipeItem>

Value
PlatForm::Object object object object

The parameter to pass to the Command property. The default is null.

CommandParameterProperty CommandParameterProperty CommandParameterProperty CommandParameterProperty

Prerelease. Identifies the CommandParameter dependency property.

public : static DependencyProperty CommandParameterProperty { get; }public static DependencyProperty CommandParameterProperty { get; }Public Static ReadOnly Property CommandParameterProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the CommandParameter dependency property.

CommandProperty CommandProperty CommandProperty CommandProperty

Prerelease. Identifies the Command dependency property.

public : static DependencyProperty CommandProperty { get; }public static DependencyProperty CommandProperty { get; }Public Static ReadOnly Property CommandProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Command dependency property.

Foreground Foreground Foreground Foreground

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

public : Brush Foreground { get; set; }public Brush Foreground { get; set; }Public ReadWrite Property Foreground As Brush// You can use this property in JavaScript.
<SwipeItem Foreground="{StaticResource resourceName}"/>

Value
Brush Brush Brush Brush

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

ForegroundProperty ForegroundProperty ForegroundProperty ForegroundProperty

Prerelease. Identifies the Foreground dependency property.

public : static DependencyProperty ForegroundProperty { get; }public static DependencyProperty ForegroundProperty { get; }Public Static ReadOnly Property ForegroundProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Foreground dependency property.

IconSource IconSource IconSource IconSource

Prerelease. Gets or sets the graphic content of the item.

public : IconSource IconSource { get; set; }public IconSource IconSource { get; set; }Public ReadWrite Property IconSource As IconSource// You can use this property in JavaScript.
<SwipeItem>

  <SwipeItem.IconSource>

    iconSourceElement

  </SwipeItem.IconSource>

</SwipeItem>

Value
IconSource IconSource IconSource IconSource

The graphic content of the item. The default is null.

IconSourceProperty IconSourceProperty IconSourceProperty IconSourceProperty

Prerelease. Identifies the IconSource dependency property.

public : static DependencyProperty IconSourceProperty { get; }public static DependencyProperty IconSourceProperty { get; }Public Static ReadOnly Property IconSourceProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the IconSource dependency property.

Text Text Text Text

Prerelease. Gets or sets the text description displayed on the item.

public : PlatForm::String Text { get; set; }public string Text { get; set; }Public ReadWrite Property Text As string// You can use this property in JavaScript.
<SwipeItem Text="string"/>

Value
PlatForm::String string string string

The text description displayed on the item. The default is an empty string.

TextProperty TextProperty TextProperty TextProperty

Prerelease. Identifies the Text dependency property.

public : static DependencyProperty TextProperty { get; }public static DependencyProperty TextProperty { get; }Public Static ReadOnly Property TextProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Text dependency property.

Events

Invoked Invoked Invoked Invoked

Prerelease. Occurs when user interaction indicates that the command represented by this item should execute.

public : event TypedEventHandler Invoked<SwipeItem,  SwipeItemInvokedEventArgs>public event TypedEventHandler Invoked<SwipeItem,  SwipeItemInvokedEventArgs>Public Event Invoked<SwipeItem,  SwipeItemInvokedEventArgs>// You can use this event in JavaScript.
<SwipeItem Invoked="eventhandler"/>