SelectionOperations.Subscribe, méthode

Ajoute une méthode de rappel appelée en cas de modification de la sélection dans le contexte d'édition.

Espace de noms :  Microsoft.Windows.Design.Interaction
Assembly :  Microsoft.Windows.Design.Interaction (dans Microsoft.Windows.Design.Interaction.dll)

Syntaxe

'Déclaration
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>
)

Paramètres

Exceptions

Exception Condition
ArgumentNullException

context ou handler est nullune référence null (Nothing en Visual Basic).

Sécurité .NET Framework

Voir aussi

Référence

SelectionOperations Classe

Microsoft.Windows.Design.Interaction, espace de noms

Selection

SelectionCommands

SelectionTool

EditingContext

Autres ressources

Architecture de l'extensibilité du Concepteur WPF