XAML(WPF) - ラベルの背景色とフォント色を変更する

背景色は Background、フォント色は Foreground で指定します。

フォント色と背景色の変更方法

<Label Content="背景色が赤、文字色が白のラベル"
       Background="Red"
       Foreground="White"
       Width="200">
</Label>
定義されている色は .NET 色見本 を参照してください。

Visual Studio

検証環境

関連ページ