Main Site Documentation

TinyCLR.UI.Media.Color.FromRgb Blue and Red are reversed


#1

using GHIElectronics.TinyCLR.UI;

window1.Background = new SolidColorBrush(GHIElectronics.TinyCLR.UI.Media.Color.FromRgb(255, 0, 0));
//Window 1 is Blue

window1.Background = new SolidColorBrush(GHIElectronics.TinyCLR.UI.Media.Color.FromRgb(0, 255, 0));
//Window 2 is Green

window1.Background = new SolidColorBrush(GHIElectronics.TinyCLR.UI.Media.Color.FromRgb(0, 0, 255));
//Window 1 is Red

Thought I would let you know.


#2

Thanks for the catch, we’ll take a look.


#3

This is fixed for the next release, preview3.


#4

Thank you for the reply