共用方式為


Selection.Subscribe 方法

定義

訂閱選取項目變更事件的 Helper 方法。

public:
 static void Subscribe(System::Activities::Presentation::EditingContext ^ context, System::Activities::Presentation::SubscribeContextCallback<System::Activities::Presentation::View::Selection ^> ^ handler);
public static void Subscribe (System.Activities.Presentation.EditingContext context, System.Activities.Presentation.SubscribeContextCallback<System.Activities.Presentation.View.Selection> handler);
static member Subscribe : System.Activities.Presentation.EditingContext * System.Activities.Presentation.SubscribeContextCallback<System.Activities.Presentation.View.Selection> -> unit
Public Shared Sub Subscribe (context As EditingContext, handler As SubscribeContextCallback(Of Selection))

參數

context
EditingContext

要接聽的編輯內容。

handler
SubscribeContextCallback<Selection>

要在選取項目變更時叫用的處理常式。

適用於