Setting HEX value to Background colour

3 posts, 0 answers
  1. Naren
    Naren avatar
    53 posts
    Member since:
    Aug 2010

    Posted 21 Sep 2010 Link to this post

    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. Naren
    Naren avatar
    53 posts
    Member since:
    Aug 2010

    Posted 21 Sep 2010 Link to this post

    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"
  3. DevCraft banner
  4. Naren
    Naren avatar
    53 posts
    Member since:
    Aug 2010

    Posted 21 Sep 2010 Link to this post

    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;
Back to Top