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 C1TileView.CanUserReorder property to False.
At Design Time
To disable drag-and-drop functionality in the C1TileView control in the Properties window at design time, complete the following steps:
This will disable drag-and-drop functionality.
In XAML
To disable drag-and-drop functionality in the C1TileView control in XAML add CanUserReorder="False" to the <TileView:TileView> tag so that it appears similar to the following:
Markup |
Copy Code
|
---|---|
<TileView:C1TileView Name="C1TileView1" CanUserReorder="False"> |
In Code
Right-click the window and select View Code to open the Code Editor. Add code to the main class, so it appears similar to the following:
Visual Basic |
Copy Code
|
---|---|
Public Sub New() InitializeComponent() Me.C1TileView1.CanUserReorder = False End Sub |
C# |
Copy Code
|
---|---|
public MainPage() { InitializeComponent(); this.C1TileView1.CanUserReorder = false; } |
Run your project and observe:
You will not be able to perform drag-and-drop operations at run time.