Esempio n. 1
0
        public MainPage()
        {
            this.InitializeComponent();
            var man = CoreDragDropManager.GetForCurrentView();

            man.TargetRequested += Man_TargetRequested;
        }
Esempio n. 2
0
        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
        }
Esempio n. 3
0
 private void CallDragDrop()
 {
     var a = CoreDragDropManager.GetForCurrentView();
     var b = Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager.GetForCurrentView();
 }