This is a migrated thread and some comments may be shown as answers.

Setting HEX value to Background colour

2 Answers 290 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Naren
Top achievements
Rank 1
Naren asked on 21 Sep 2010, 06:43 AM
Hi ,
I am using following line which works fine

RadTileViewItem..Background =new SolidColorBrush(Colors.Green);


But I want to set Hex Value(#CAF300) to "RadTileViewItem..Background" ....How can I do that?
Thanx in advance

2 Answers, 1 is accepted

Sort by
0
Naren
Top achievements
Rank 1
answered on 21 Sep 2010, 06:57 AM
Or I have following equivalent of HEX Value(#CAF300) from color picker Application.
i.  202,243,154
ii. 10154954

CAn you help to set any of these values.......although "How to set HEX value will be helpful"
0
Naren
Top achievements
Rank 1
answered on 21 Sep 2010, 10:48 AM
Hi I got Solution for it.
I set background color using RGB Values..Thanks to my colleague Saurabh.
we can use SolidColorBrush as follows :-

 SolidColorBrush brush1 = new SolidColorBrush(Color.FromArgb(255, 202, 243, 154));
 RadTileViewItem.Background = brush1;
Tags
TileView
Asked by
Naren
Top achievements
Rank 1
Answers by
Naren
Top achievements
Rank 1
Share this question
or