XamlLight.AddTargetBrush(String, Brush) Method

Definition

Sets a Brush as a target of a XamlLight.

Equivalent WinUI method: Microsoft.UI.Xaml.Media.XamlLight.AddTargetBrush.

public:
 static void AddTargetBrush(Platform::String ^ lightId, Brush ^ brush);
 static void AddTargetBrush(winrt::hstring const & lightId, Brush const & brush);
public static void AddTargetBrush(string lightId, Brush brush);
function addTargetBrush(lightId, brush)
Public Shared Sub AddTargetBrush (lightId As String, brush As Brush)

Parameters

lightId
String

The identifier for the XamlLight that should target the Brush.

brush
Brush

The Brush that the light should target.

Applies to