Class
ItemDragStartingContext

Represents the context that is passed as a parameter of a ItemDragStartingCommand.

Definition

Namespace:Telerik.UI.Xaml.Controls.Data.ListView.Commands

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class ItemDragStartingContext

Inheritance: objectItemDragStartingContext

Constructors

ItemDragStartingContext(object, DragAction)

Initializes a new instance of the ItemDragStartingContext class.

Declaration

cs-api-definition
public ItemDragStartingContext(object dataItem, DragAction itemAction)

Parameters

dataItem

object

itemAction

DragAction

ItemDragStartingContext(object, DragAction, RadListViewItem)

Initializes a new instance of the ItemDragStartingContext class.

Declaration

cs-api-definition
public ItemDragStartingContext(object dataItem, DragAction itemAction, RadListViewItem container)

Parameters

dataItem

object

itemAction

DragAction

container

RadListViewItem

Properties

Action

Gets or sets the drag action type.

Declaration

cs-api-definition
public DragAction Action { get; set; }

Property Value

DragAction

Container

Gets the RadListViewItem currently dragged.

Declaration

cs-api-definition
public RadListViewItem Container { get; }

Property Value

RadListViewItem

FinalDragOffset

Gets or sets the maximum drag offset that item will set to after when the operation finish successfully.

Declaration

cs-api-definition
public double FinalDragOffset { get; set; }

Property Value

double

The maximum drag offset. Can be negative value.

Item

Gets or sets the item that is being dragged.

Declaration

cs-api-definition
public object Item { get; set; }

Property Value

object