DragEventArgs.AllowedOperations Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that specifies which operations (none, move, copy, and/or link) are allowed by the source of the drag event.
public:
property DataPackageOperation AllowedOperations { DataPackageOperation get(); };
DataPackageOperation AllowedOperations();
public DataPackageOperation AllowedOperations { get; }
var dataPackageOperation = dragEventArgs.allowedOperations;
Public ReadOnly Property AllowedOperations As DataPackageOperation
Property Value
A value or bitwise combination of values that specifies which operations are allowed by the source of the drag event.
Remarks
This value is set in the UIElement.DragStarting event handler via the DragStartingEventArgs.AllowedOperations property. It can then be read from this property in the DragEnter and DragOver events of the UIElement
that is a potential drop target of the drag and drop operation. It notifies the target which data package operations (none, move, copy, and/or link) are allowed by the source.
For more info about the allowed data operations, see the DataPackageOperation enumeration.
Applies to
See also
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin