ComponentOne TileView for UWP
TileView for UWP Task-Based Help / Disabling Drag-and-Drop Functionality
In This Topic
    Disabling Drag-and-Drop Functionality
    In This Topic

    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:

    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 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.

    See Also