skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DragDropHelper<TBehavior, TState>

Inheritance
System.Object
DragDropHelper<TBehavior, TState>
Namespace: Telerik.UI.Xaml.Controls.DragDrop.Behaviors
Assembly: Telerik.WinUI.Controls.dll

Syntax

public abstract class DragDropHelper<TBehavior, TState> : Object where TBehavior : DragDropBehavior<TState> where TState : DragDropState, new()
Type Parameters
TBehavior

TState

Constructors

DragDropHelper()

Declaration
protected DragDropHelper()

Properties

DataConverter

Declaration
public DataConverter DataConverter { get; set; }
Property Value
DataConverter

DragDropBehavior

Declaration
public TBehavior DragDropBehavior { get; set; }
Property Value
TBehavior

DragVisualProvider

Declaration
public IDragVisualProvider DragVisualProvider { get; set; }
Property Value
IDragVisualProvider

Methods

CreateDragVisualProviderState(Point, FrameworkElement, TState)

Declaration
protected virtual DragVisualProviderState CreateDragVisualProviderState(Point relativeStartPoint, FrameworkElement control, TState state)
Parameters
Windows.Foundation.Point relativeStartPoint

Microsoft.UI.Xaml.FrameworkElement control

TState state

Returns
DragVisualProviderState

CreateStateForDrop(FrameworkElement, FrameworkElement, Object, Type)

Declaration
protected virtual TState CreateStateForDrop(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)
Parameters
Microsoft.UI.Xaml.FrameworkElement dropTarget

Microsoft.UI.Xaml.FrameworkElement dropItemsControl

System.Object data

System.Type itemType

Returns
TState

DragDropCompleted(FrameworkElement, Object, Type, Boolean)

Declaration
protected virtual void DragDropCompleted(FrameworkElement dropItemsControl, object data, Type itemType, bool wasCanceled)
Parameters
Microsoft.UI.Xaml.FrameworkElement dropItemsControl

System.Object data

System.Type itemType

System.Boolean wasCanceled

DragLeave(FrameworkElement, FrameworkElement, Object, Type)

Declaration
protected virtual void DragLeave(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)
Parameters
Microsoft.UI.Xaml.FrameworkElement dropTarget

Microsoft.UI.Xaml.FrameworkElement dropItemsControl

System.Object data

System.Type itemType

DragOver(FrameworkElement, FrameworkElement, Object, Type)

Declaration
protected virtual DragDropEffects DragOver(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)
Parameters
Microsoft.UI.Xaml.FrameworkElement dropTarget

Microsoft.UI.Xaml.FrameworkElement dropItemsControl

System.Object data

System.Type itemType

Returns
DragDropEffects

Drop(FrameworkElement, FrameworkElement, Object, Type)

Declaration
protected virtual void Drop(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)
Parameters
Microsoft.UI.Xaml.FrameworkElement dropTarget

Microsoft.UI.Xaml.FrameworkElement dropItemsControl

System.Object data

System.Type itemType

FindDraggedItem(FrameworkElement)

Declaration
protected abstract FrameworkElement FindDraggedItem(FrameworkElement element)
Parameters
Microsoft.UI.Xaml.FrameworkElement element

Returns
Microsoft.UI.Xaml.FrameworkElement

FindDragSource(FrameworkElement)

Declaration
protected abstract FrameworkElement FindDragSource(FrameworkElement element)
Parameters
Microsoft.UI.Xaml.FrameworkElement element

Returns
Microsoft.UI.Xaml.FrameworkElement

FindDropItemsControl(FrameworkElement, Object)

Declaration
protected abstract FrameworkElement FindDropItemsControl(FrameworkElement element, object data)
Parameters
Microsoft.UI.Xaml.FrameworkElement element

System.Object data

Returns
Microsoft.UI.Xaml.FrameworkElement

FindDropTarget(FrameworkElement)

Declaration
protected abstract FrameworkElement FindDropTarget(FrameworkElement element)
Parameters
Microsoft.UI.Xaml.FrameworkElement element

Returns
Microsoft.UI.Xaml.FrameworkElement

GetContainerFromItem(FrameworkElement, Object)

Declaration
protected virtual DependencyObject GetContainerFromItem(FrameworkElement control, object item)
Parameters
Microsoft.UI.Xaml.FrameworkElement control

System.Object item

Returns
Microsoft.UI.Xaml.DependencyObject

GetDraggedItems(FrameworkElement)

Declaration
protected abstract IEnumerable<object> GetDraggedItems(FrameworkElement draggedItem)
Parameters
Microsoft.UI.Xaml.FrameworkElement draggedItem

Returns
System.Collections.Generic.IEnumerable<System.Object>

GetInferredItemType(IEnumerable)

Declaration
protected static Type GetInferredItemType(IEnumerable itemsSource)
Parameters
System.Collections.IEnumerable itemsSource

Returns
System.Type

GetItemsFromDataObject(Object, Type)

Declaration
protected IEnumerable GetItemsFromDataObject(object data, Type itemType)
Parameters
System.Object data

System.Type itemType

Returns
System.Collections.IEnumerable

GetItemsOfType(IEnumerable, Type)

Declaration
protected static IEnumerable GetItemsOfType(IEnumerable enumerable, Type itemType)
Parameters
System.Collections.IEnumerable enumerable

System.Type itemType

Returns
System.Collections.IEnumerable

GetItemsSource(FrameworkElement)

Declaration
protected virtual IList GetItemsSource(FrameworkElement element)
Parameters
Microsoft.UI.Xaml.FrameworkElement element

Returns
System.Collections.IList

GetItemType(FrameworkElement)

Declaration
protected Type GetItemType(FrameworkElement control)
Parameters
Microsoft.UI.Xaml.FrameworkElement control

Returns
System.Type

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
Support Resources
  • Knowledge Base
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.