Dragand Drop in WPF Tile View

Drag-and-Drop enables you to drag the TileViewItems in TileViewControl in a normal state. Once the TileViewItem is dragged, the other items in the TileViewControl moves to the corresponding positions in accordance to the dragging item. This can be enabled and disabled by using the AllowItemRepositioning property.

Adding Dragging Items to an Application

The Dragging items can be added to an application by using either XAML or C# code.

Adding through XAML

The following code example illustrates how to add the Dragging Items to an application through XAML.

  • xaml
  • <syncfusion:TileViewControl Name="tileViewCntrl" 
    
                                AllowItemRepositioning="True"/>

    Adding through C#

    The following code example illustrates how to add the Dragging Items to an application through C#.

  • c#
  • tileViewCntrl.AllowItemRepositioning = true;

    Events

    To view samples:

    1. Select Start -> Programs -> Syncfusion -> Essential Studio XX.X.X.XX -> Dashboard.
    2. Select Run Locally Installed Samples in WPF Button.
    3. Now expand the DragAndDropManagerDemo tree-view item in the Sample Browser.
    4. Choose any one of the samples listed under it to launch.