i can change custom color Rectangle with something like : “#A125AA” in xaml.
But i don’t know where to find code change custom color i have
i just know code for color arealy have
this.gridgcolor.Background = new SolidColorBrush(Colors.Blue);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can set the color through RGB. This isn’t done in hex like you’re doing in your xaml.
the hex values you have in your example #A125AA are also RGB
R = A1,
G = 25,
B = AA
You could convert these values with a helper method so you can add them to your Color object.
If you want to use the names, here is also a list of a lot of RGB codes matched to their names