Manipulation.AddManipulator(UIElement, IManipulator) Metodo

Definizione

Associa un oggetto IManipulator all'elemento specificato.

public:
 static void AddManipulator(System::Windows::UIElement ^ element, System::Windows::Input::IManipulator ^ manipulator);
public static void AddManipulator (System.Windows.UIElement element, System.Windows.Input.IManipulator manipulator);
static member AddManipulator : System.Windows.UIElement * System.Windows.Input.IManipulator -> unit
Public Shared Sub AddManipulator (element As UIElement, manipulator As IManipulator)

Parametri

element
UIElement

Elemento a cui associare lo strumento di manipolazione.

manipulator
IManipulator

Oggetto che fornisce la posizione dell'input che viene aggiunto a una manipolazione o che la crea.

Eccezioni

element è null.

-oppure-

manipulator è null.

La proprietà IsManipulationEnabled sull'elemento è false.

Commenti

Se element è già associata una manipolazione, manipulator viene aggiunta alla manipolazione esistente. In caso contrario, viene creata una nuova manipolazione.

Si applica a