|
-
Jun 1st, 2022, 01:30 AM
#1
Thread Starter
Addicted Member
WPF save colors to database
I've been trying to figure out how to handle brushes in WPF. I want to let the user configure the colors they like and save that in a database which I've more or less figured out how to do (use solidcolorbrushes then cast that to a color and toostring gives me the value which I can save as VARCHAR in an accdb.
What I haven't been able to decipher is how to go from a string like #FFE2F2EF to a color and then a solidbrush. Seems winforms has simple ways but I can't find anything for WPF.
Of course there is probably a simple method that I just can't seem to find.
Anyone have any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|