Compartilhar via


CoreDragOperation Classe

Definição

Manipula uma operação de arrastar e soltar.

public ref class CoreDragOperation sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CoreDragOperation final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class CoreDragOperation final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CoreDragOperation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CoreDragOperation
Public NotInheritable Class CoreDragOperation
Herança
Object Platform::Object IInspectable CoreDragOperation
Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 (introduzida na 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v1.0)

Comentários

Histórico de versão

Versão do Windows Versão do SDK Valor adicionado
1511 10586 AllowedOperations

Construtores

CoreDragOperation()

Inicializa uma nova instância da classe CoreDragOperation .

Propriedades

AllowedOperations

Obtém ou define as DataPackageOperations permitidas (nenhum, mover, copiar e/ou link) para a operação de arrastar e soltar.

Data

Obtém o DataPackage para a operação de arrastar e soltar.

DragUIContentMode

Obtém ou define o modo de conteúdo para a interface do usuário de arrastar.

Métodos

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap, Point)

Define o conteúdo da interface do usuário de arrastar personalizado usando um bitmap de software.

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap)

Define o conteúdo da interface do usuário de arrastar personalizado usando um bitmap de software.

SetPointerId(UInt32)

Define a ID do ponteiro.

StartAsync()

Inicia a operação de arrastar e soltar.

Aplica-se a