how to change a button color in C# code example Example: button color uwp c# btn1.Foreground = new SolidColorBrush(Windows.UI.Colors.Blue);