


If the response is helpful, please click " Accept Answer" and upvote it. Goto edit and select 'Fill with FG color'. Select the original layer by clicking on it in the layers list (one below the one you just created). Duplicate the layer by right-clicking on the layer and selecting 'duplicate layer'. The instructions below assume you are currently using one of the. Make sure the text box is tight to the text (Rectangle on bottom left corner). Then click on appropriate color fields and choose your colors.
Set background color of textbox iswift windows#
Grid.Background = GetSolidColorBrush("#FFCD3917") Click on Windows icon in your task bar > Settings > Personalization > Colors > scroll down to the bottom and click High Contrast Themes > choose one of the High Contrast Themes from the Choose a theme drop down menu.

SolidColorBrush myBrush = new SolidColorBrush(Windows.UI.Color.FromArgb(a, r, g, b)) HEXColor public SolidColorBrush GetSolidColorBrush(string hex)īyte a = (byte)(Convert.ToUInt32(hex.Substring(0, 2), 16)) īyte r = (byte)(Convert.ToUInt32(hex.Substring(2, 2), 16)) īyte g = (byte)(Convert.ToUInt32(hex.Substring(4, 2), 16)) īyte b = (byte)(Convert.ToUInt32(hex.Substring(6, 2), 16)) Grid.Background = new SolidColorBrush(bgcolor) How i can set color for Background or Foreground in HEX or RGB(ARGB) Ĭolor class contains static FromArgb method, you could use it to create ARGB color then pass it to SolidColorBrush var bgcolor = Color.FromArgb((byte)255, (byte)255, (byte)155, (byte)132)
