Click here to Skip to main content
11,428,004 members (59,271 online)
Click here to Skip to main content

Tagged as

Color Code to SolidColor Conversion

, 3 Jan 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
Convert color code to SolidColor.
public SolidColorBrush GetColor(string ColorCode) 
  return (SolidColorBrush)XamlReader.Load("<SolidColorBrush xmlns=\"http://schemas." + 
     "\ <http://schemas." + 
     "> " Color=\"" + ColorCode + "\" />");


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Member 4053748
Web Developer
India India
No Biography provided

Comments and Discussions

General??????? Pin
zy284092759-Jan-12 19:15
memberzy284092759-Jan-12 19:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150428.2 | Last Updated 3 Jan 2012
Article Copyright 2012 by Member 4053748
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid