# Disabling Drag-and-Drop Functionality

## Content



By default drag-and-drop functionality is enabled, allowing users to re-order [C1TileViewItem](/componentone/api/wpf/online-tilesview/dotnet-framework-api/C1.WPF.TileView.4.6.2/C1.WPF.TileView.C1TileViewItem.html) elements at run time. If you choose, however, you can disable drag-and-drop functionality by setting the [CanUserReorder](/componentone/api/wpf/online-tilesview/dotnet-framework-api/C1.WPF.TileView.4.6.2/C1.WPF.TileView.C1TileView.CanUserReorder.html) property to **False**.

### At Design Time

To disable drag-and-drop functionality in the [C1TileView](/componentone/api/wpf/online-tilesview/dotnet-framework-api/C1.WPF.TileView.4.6.2/C1.WPF.TileView.C1TileView.html) control in the Properties window at design time, complete the following steps:

1.  Click the C1TileView control once to select it.
2.  Navigate to the Properties window, and locate the **CanUserReorder** property.
3.  Click the drop-down arrow next to the **CanUserReorder** property and select **False**.

This disables drag-and-drop functionality.

### In XAML

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:

```xml
<c1:C1TileView Name="C1TileView1" CanUserReorder="False">
```

### In Code

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:

### for WPF

```WPF
Window1_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
    Me.C1TileView1.CanUserReorder = False
End Sub
```

```WPF
private void Window_Loaded(object sender, RoutedEventArgs e)
{
    this.c1TileView1.CanUserReorder = false;
}
```

### for Silverlight

```SILVERLIGHT
Public Sub New()
InitializeComponent()
    Me.C1TileView1.CanUserReorder = False
End Sub
```

```SILVERLIGHT
MainPage(){
InitializeComponent();
    this.c1TileView1.CanUserReorder = false;
}
```

Run your project and observe that now the user cannot perform drag-and-drop operations at run time.

## See Also

[Customizing the Header's Appearance](/componentone/docs/wpf/online-tilesview/TileViewforWPFTask-BasedHelp/customizingtheheaderappearance)