Exemple #1
0
        internal void UpdateSource(IDragEventSource src)
        {
            if (src.Id != SourceId)
            {
                throw new InvalidOperationException("Cannot change the source id of pending drag operation");
            }

            _source = src;
            (Position, Modifiers) = src.GetState();
        }
Exemple #2
0
        internal CoreDragInfo(
            IDragEventSource source,
            DataPackageView data,
            DataPackageOperation allowedOperations,
            object?dragUI = null)
        {
            _source = source;
            (Position, Modifiers) = source.GetState();

            Data = data;
            AllowedOperations = allowedOperations;
            DragUI            = dragUI;
        }