assign button color in code UWP code example Example: change canvas color uwp c# new SolidColorBrush(Windows.UI.Colors.Blue)