set text some part red wpf xaml.cs code example Example: change text color wpf Lable.Foreground="somecolor"