Thank You! You help me...
Pretty simple......and pretty ugly an' all :-) Shame on Microsoft for not exposing the brush's properties as nicely as the Pen. Still, >you< got me out of a big hole -- thanks!(Makes me wonder about gradient brushes for a single colour though; Might have to see what the pen does with that...)
Thanks for posting this! On a bad day something as simple as this could hold you down...
...like it did to me today! Thank you very much!
awesome thanks. This saved me today, but in my case I have to do something like since it's Silverlight:SolidColorBrush S = txtColorWord1.Foreground as SolidColorBrush; txtBlock.Text = S.Color.ToString();
Thanks for that, was getting my hair off with the Brush!
Thanks for that simple solution! It's a bit silly that it isn't possible to get it directly.
It's not silly at all. Only solid brushes even have a colour. Other brushes can paint with gradients or bitmaps or whatever.You can use:Color colour = ((SolidBrush)my_brush).Color;
Post a Comment