WorkflowDesignerMessageFilter.OnMouseCaptureChanged Método
Definição
Ocorre quando os itens selecionados ao arrastar o mouse são alterados.Occurs when the items selected by dragging the mouse changes.
protected:
virtual bool OnMouseCaptureChanged();
protected virtual bool OnMouseCaptureChanged ();
abstract member OnMouseCaptureChanged : unit -> bool
override this.OnMouseCaptureChanged : unit -> bool
Protected Overridable Function OnMouseCaptureChanged () As Boolean
Retornos
true se a mensagem for manipulada, caso contrário, false.true if the message is handled; otherwise, false.
Exemplos
O exemplo de código a seguir mostra como substituir o OnMouseCaptureChanged método a ser retornado para false que outros componentes na arquitetura do designer possam processar o método.The following code example shows how to override the OnMouseCaptureChanged method to return false so that other components in the designer architecture can process the method.
Este exemplo de código faz parte do exemplo do SDK de hospedagem do designer básico do arquivo DesignerShell. cs.This code example is part of the Basic Designer Hosting SDK Sample from the DesignerShell.cs file. Para obter mais informações, consulte Basic Designer Hosting.For more information, see Basic Designer Hosting.
protected override bool OnMouseCaptureChanged()
{
//Allow other components to process this event by not returning true.
mouseDown = false;
return false;
}
Protected Overrides Function OnMouseCaptureChanged() As Boolean
' Allow other components to process this event by not returning true.
mouseDown = False
Return False
End Function
Comentários
OnMouseCaptureChanged ocorre quando os itens selecionados arrastando as alterações do mouse.OnMouseCaptureChanged occurs when the items selected by dragging the mouse changes.