Dela via


XamlLight.RemoveTargetElement(String, UIElement) Method

Definition

Stops a UIElement from being a target of a XamlLight.

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

Parameters

lightId
String

Platform::String

winrt::hstring

The identifier for the XamlLight that should no longer target the UIElement.

element
UIElement

The UIElement that the light should no longer target.

Applies to