CoreDragDropManager
CoreDragDropManager
CoreDragDropManager
CoreDragDropManager
Class
Definition
Manages access for drag and drop within and between apps.
public : sealed class CoreDragDropManager : ICoreDragDropManagerpublic sealed class CoreDragDropManager : ICoreDragDropManagerPublic NotInheritable Class CoreDragDropManager Implements ICoreDragDropManager// This API is not available in Javascript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Examples
public sealed partial class MainPage : Page
{
private void DropOperationTargetRequested(CoreDragDropManager sender,
CoreDropOperationTargetRequestedEventArgs evtArgs)
{
// Create a target (see above for more implementation details)
var target = new DropTarget ();
evtArgs.SetTarget(target);
}
public MainPage()
{
InitializeComponents();
var dragDropManager = DragDropManager.GetForCurrentView();
dragDropManager.DropOperationTargetRequested += DropOperationTargetRequested;
}
}
Properties
AreConcurrentOperationsEnabled AreConcurrentOperationsEnabled AreConcurrentOperationsEnabled AreConcurrentOperationsEnabled
Gets or sets whether concurrent drag and drop operations are enabled.
public : PlatForm::Boolean AreConcurrentOperationsEnabled { get; set; }public bool AreConcurrentOperationsEnabled { get; set; }Public ReadWrite Property AreConcurrentOperationsEnabled As bool// This API is not available in Javascript.
- Value
- PlatForm::Boolean bool bool bool
True if concurrent drag and drop operations are enabled; otherwise, false.
Methods
GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView()
Gets the core drag and drop manager associated with the currently visible application window.
public : static CoreDragDropManager GetForCurrentView()public static CoreDragDropManager GetForCurrentView()Public Static Function GetForCurrentView() As CoreDragDropManager// This API is not available in Javascript.
Returns
The core drag and drop manager associated with the currently visible application window.
Events
TargetRequested TargetRequested TargetRequested TargetRequested
Occurs when a drag and drop target is requested.
public : event TypedEventHandler TargetRequested<CoreDragDropManager, CoreDropOperationTargetRequestedEventArgs>public event TypedEventHandler TargetRequested<CoreDragDropManager, CoreDropOperationTargetRequestedEventArgs>Public Event TargetRequested<CoreDragDropManager, CoreDropOperationTargetRequestedEventArgs>// This API is not available in Javascript.