Click here to Skip to main content
13,048,406 members (147,269 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

16.3K views
1 bookmarked
Posted 3 Jan 2012

Color Code to SolidColor Conversion

, 3 Jan 2012
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." + 
     "microsoft.com/winfx/2006/xaml/presentation\ <http://schemas." + 
     "microsoft.com/winfx/2006/xaml/presentation/> " Color=\"" + ColorCode + "\" />");
}

License

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

Share

About the Author

Member 4053748
Web Developer
India India
No Biography provided

You may also be interested in...

Comments and Discussions

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

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

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

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