public MainPage() { this.InitializeComponent(); var man = CoreDragDropManager.GetForCurrentView(); man.TargetRequested += Man_TargetRequested; }
private void OnHostDragEnter(object sender, DragEventArgs e) { var src = new DragEventSource(_fakePointerId, e); var data = ToDataPackage(e.Data); var allowedOperations = ToDataPackageOperation(e.AllowedEffects); var info = new CoreDragInfo(src, data.GetView(), allowedOperations); CoreDragDropManager.GetForCurrentView()?.DragStarted(info); // Note: No needs to _manager.ProcessMove, the DragStarted will actually have the same effect }
private void CallDragDrop() { var a = CoreDragDropManager.GetForCurrentView(); var b = Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager.GetForCurrentView(); }