TextBox.PlaceholderForeground Eigenschaft

Definition

Ruft einen Pinsel ab, der die Farbe des Platzhaltertexts beschreibt, oder legt diesen fest.

public:
 property Brush ^ PlaceholderForeground { Brush ^ get(); void set(Brush ^ value); };
Brush PlaceholderForeground();

void PlaceholderForeground(Brush value);
public Brush PlaceholderForeground { get; set; }
var brush = textBox.placeholderForeground;
textBox.placeholderForeground = brush;
Public Property PlaceholderForeground As Brush
<TextBox PlaceholderForeground="{StaticResource resourceName}"/>
- or -
<TextBox PlaceholderForeground="colorString"/>

Eigenschaftswert

Der Pinsel, der die Farbe des Platzhaltertexts beschreibt.

Windows-Anforderungen

Gerätefamilie
Windows 10 Fall Creators Update (eingeführt in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v5.0)

Gilt für: