Check out example codes for "change canvas color uwp c#". It will help you in understanding the concepts better.

Code Example 1

new SolidColorBrush(Windows.UI.Colors.Blue)

Code Example 2

btn1.Foreground = new SolidColorBrush(Windows.UI.Colors.Blue);

Learn ReactJs, React Native from akashmittal.com