[]
By default drag-and-drop functionality is enabled, allowing users to re-order C1TileViewItem elements at run time. If you choose, however, you can disable drag-and-drop functionality by setting the CanUserReorder property to False.
To disable drag-and-drop functionality in the C1TileView control in the Properties window at design time, complete the following steps:
Click the C1TileView control once to select it.
Navigate to the Properties window, and locate the CanUserReorder property.
Click the drop-down arrow next to the CanUserReorder property and select False.
This disables drag-and-drop functionality.
To disable drag-and-drop functionality in the C1TileView control in XAML, add CanUserReorder="False" to the c1:TileView element so that it appears similar to the following:
<c1:C1TileView Name="C1TileView1" CanUserReorder="False">Right-click the window and select View Code to open the Code Editor. Add code to the Window1_Loaded event handler, so it appears similar to the following:
Window1_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
Me.C1TileView1.CanUserReorder = False
End Subprivate void Window_Loaded(object sender, RoutedEventArgs e)
{
this.c1TileView1.CanUserReorder = false;
}Run your project and observe that now the user cannot perform drag-and-drop operations at run time.