Share via


SelectionOperations.Subscribe Method

Adds a callback method that is invoked when the selection in the editing context changes.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Shared Sub Subscribe ( _
    context As EditingContext, _
    handler As SubscribeContextCallback(Of Selection) _
)
public static void Subscribe(
    EditingContext context,
    SubscribeContextCallback<Selection> handler
)
public:
static void Subscribe(
    EditingContext^ context, 
    SubscribeContextCallback<Selection^>^ handler
)
static member Subscribe : 
        context:EditingContext * 
        handler:SubscribeContextCallback<Selection> -> unit 
public static function Subscribe(
    context : EditingContext, 
    handler : SubscribeContextCallback<Selection>
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

context or handler is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

SelectionOperations Class

Microsoft.Windows.Design.Interaction Namespace

Selection

SelectionCommands

SelectionTool

EditingContext

Other Resources

WPF Designer Extensibility Architecture