Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
595
Disable drag and drop
posted

Is there away to disable drag and drop?

Parents
No Data
Reply
  • 3071
    Suggested Answer
    posted

    Hi MrYang,
    Yes, you can control this using Drag Events.
    private void tileView1_TileDragStarted(object sender, TileDragStartedEventArgs e)
    {
        if (!CanDrag(e.DragElement))
            TilePanel.StopDrag(e.DragElement, true);
    }
    private void tileView1_TileDrag(object sender, TileDragEventArgs e)
    {
        e.CancelTarget = !CanDoDragDrop(e.TargetElement, e.DragElement);
    }
    private bool CanDrag(UIElement uIElement)
    {
        return false;
    }
    private bool CanDoDragDrop(UIElement uIElement, UIElement uIElement_2)
    {
        return false;
    }
    Marin

Children
No Data