Share via


XamlLight.AddTargetElement(String, UIElement) Méthode

Définition

Définit un élément UIElement en tant que cible d’un xamlLight.

public:
 static void AddTargetElement(Platform::String ^ lightId, UIElement ^ element);
 static void AddTargetElement(winrt::hstring const& lightId, UIElement const& element);
public static void AddTargetElement(string lightId, UIElement element);
function addTargetElement(lightId, element)
Public Shared Sub AddTargetElement (lightId As String, element As UIElement)

Paramètres

lightId
String

Platform::String

winrt::hstring

Identificateur de XamlLight qui doit cibler l’élément UIElement.

element
UIElement

UIElement que la lumière doit cibler.

S’applique à