Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7915043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:19:36+00:00 2026-06-03T14:19:36+00:00

i can change custom color Rectangle with something like : #A125AA in xaml. But

  • 0

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);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:19:39+00:00Added an answer on June 3, 2026 at 2:19 pm

    you can set the color through RGB. This isn’t done in hex like you’re doing in your xaml.

    Color color = new Color() { R = 255, G = 255, B = 255 };
    Brush brush= new SolidColorBrush(color);
    

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How I can change the color of h2 ? I have tried <h2 color=#006699>Process
To change whole row background color we can use getRowClass, but how to do
I'm making a custom ListCellRenderer. I know that you can have different dimensions for
I can change the text color by doing this in jqgrid custom formatter: function
I have a LinearLayout that I would like to change the background color of
You can change the connection string at run-time like this. You make the connection
can any one tell me how can change this java code into objective c.is
I know I can change the selectionStyle of a UITableViewCell to make it highlight
How can I change color of lines in Visual Studio 2010 based on some
I would like to set a custom color for the keyboard that is associated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.