Converting a string HEX to color in Windows Phone Runtime c#

前端 未结 8 1668
执念已碎
执念已碎 2021-02-09 07:30

I am working on a windows phone game, and I got stuck when I wanted to convert a HEX string into Color. On windows phone 8 silverlight it is not a problem but I cannot find a so

8条回答
  •  你的背包
    2021-02-09 08:08

    You can use

    var color = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0, 0));
    

提交回复
热议问题