예제 #1
0
        private async void OnPlayItemsListViewDragEnter(object sender, DragEventArgs e)
        {
            var def = e.GetDeferral();

            if (e.DataView.Contains(StandardDataFormats.StorageItems))
            {
                e.AcceptedOperation = DataPackageOperation.Copy;
            }
            else if (e.DataView.Contains(StandardDataFormats.Text))
            {
                if (DragHelper.Contains(await e.DataView.GetTextAsync()))
                {
                    e.AcceptedOperation = DataPackageOperation.Copy;
                }
            }
            def.Complete();
        }