No announcements
Found 2096333 threads
-
1 Votes
Overriding system brushes like ApplicationPageBackgroundThemeBrush
I think I should override the styles for themes Dark/Light and change it according to the user's selection.Answered | 2 Replies | 3898 Views | Created by wonderful and beautiful world - Sunday, March 9, 2014 2:02 PM | Last reply by wonderful and beautiful world - Monday, March 10, 2014 6:59 PM -
0 Votes
Brush based on another brush.
I tried your advise but I have exception when try to use the brush in code, e.g.Answered | 5 Replies | 6734 Views | Created by Fame T - Tuesday, September 23, 2008 12:23 PM | Last reply by Stephen Drew - Tuesday, September 11, 2012 5:12 PM -
0 Votes
Get Color of Brush
Hi, An alternative to your code snippet might look something like this, this will prevent a possible exception if the Brush being passed in does not derive from ...Answered | 3 Replies | 3324 Views | Created by arturm - Friday, January 29, 2010 12:40 PM | Last reply by Paul Diston - Saturday, January 30, 2010 10:11 AM -
4 Votes
Line in Graidient brush drawing
Now it looks like the brush was too short.Answered | 19 Replies | 566 Views | Created by scholarQ - Sunday, May 7, 2017 12:51 PM | Last reply by Frank L. Smith - Sunday, May 7, 2017 6:21 PM -
0 Votes
Custom brushes help
I know that the Brush class is abstract, so if you wanted to create a custom Brush, you would create something like this: using System; using ...Answered | 3 Replies | 6928 Views | Created by BowlerMonk - Saturday, February 2, 2008 4:21 PM | Last reply by rookie1024 - Tuesday, October 18, 2011 2:14 PM -
0 Votes
dispose of brush in 2D array
I guess I don't understand why you are creating new brushes when the brushes with the colors you need already exist.Answered | 10 Replies | 923 Views | Created by Dan Cederlund - Tuesday, December 9, 2014 8:50 PM | Last reply by Chris Dunaway - Thursday, December 18, 2014 9:36 PM -
0 Votes
Change Border Brush Programmatically
Example shows how to set Border Brush property from CodeBehind as well ExceptionValidation.Answered | 2 Replies | 30354 Views | Created by Chintan - Strings - Thursday, September 29, 2011 10:10 PM | Last reply by parth.shah - Friday, September 30, 2011 5:54 AM -
2 Votes
Switch between 'solid color brush' and 'no brush'
try this code for transparent var cor = new BrushConverter(); itensObra.Background = (Brush)cor.ConvertFrom("#00FFFFFF"); i assume itensObra ...Answered | 7 Replies | 2516 Views | Created by PauloGM - Wednesday, November 1, 2017 11:32 AM | Last reply by Bob Ding - Tuesday, November 7, 2017 1:50 AM -
0 Votes
Merging brushes ?
There's no support for "combining" brushes in a straightforward way.Answered | 1 Replies | 3792 Views | Created by Christian Graus - Tuesday, May 19, 2009 11:27 PM | Last reply by Brendan Clark - MSFT - Wednesday, May 20, 2009 4:49 AM -
0 Votes
[UWP] Override the default font with a custom font for all controls
Did you try overriding the default themeresources?Answered | 3 Replies | 7460 Views | Created by DennisBakker71 - Saturday, April 9, 2016 6:20 AM | Last reply by Krunal Parekh - Friday, April 15, 2016 4:27 AM -
2 Votes
Format16bppArgb1555 Brush...
Do you mean that you want to use a bitmap as the brush content to fill specific controls?Answered | 1 Replies | 4926 Views | Created by juansta - Tuesday, April 5, 2011 5:22 AM | Last reply by Mike Dos Zhang - Thursday, April 7, 2011 12:03 PM -
1 Votes
Compare WPF Brushes
I think you'll need to compare the brush's properties.Answered | 1 Replies | 8015 Views | Created by Paul Podlipensky - Monday, January 4, 2010 2:45 PM | Last reply by Rod Stephens - Monday, January 4, 2010 3:32 PM -
1 Votes
How to convert Brush to Hex
if you don't know the color then you can omit color parameter from Brush's constructor and then code will like: var brush = new ...Answered | 3 Replies | 6234 Views | Created by Emil Kosic - Monday, February 3, 2014 4:42 PM | Last reply by Shweta Jain (Lodha) - Tuesday, February 4, 2014 4:56 PM -
0 Votes
Convert Brush to String
You were asking how to convert a Brush into a string and I gave you an example of how to do this.Answered | 3 Replies | 5672 Views | Created by gregory.bmclub - Wednesday, March 26, 2014 2:51 PM | Last reply by Magnus (MM8) - Wednesday, March 26, 2014 9:14 PM -
0 Votes
Hijacking Brushes in Button Template
So I would like to use a template.Answered | 1 Replies | 4032 Views | Created by phertel - Wednesday, December 3, 2008 6:50 PM | Last reply by noorbakhsh - Wednesday, December 3, 2008 9:26 PM -
0 Votes
Creating Pens/Brushes Expensive
Hi Nullspace007, As you may have known, Pen and Brush are derived from the Freezable class which provides special features that can help improve ...Answered | 1 Replies | 5908 Views | Created by Nullspace007 - Saturday, March 19, 2011 5:46 PM | Last reply by Yves.Z - Tuesday, March 22, 2011 8:58 AM -
1 Votes
IoT Core - Acrylic Brush Support
hi I might be missing something really simple here, but is build 17134 (and probably all earlier builds) missing support for some of the fluent design principles ...Answered | 2 Replies | 498 Views | Created by daveh101 - Friday, May 18, 2018 9:24 AM | Last reply by daveh101 - Tuesday, May 22, 2018 10:08 AM -
3 Votes
get the color of a brush .net framework
To create a brush object, use classes derived from Brush, such as SolidBrush, TextureBrush, and LinearGradientBrush.Answered | 10 Replies | 3237 Views | Created by satuday - Thursday, September 29, 2011 6:45 PM | Last reply by WhCatalpa - Wednesday, October 5, 2011 2:09 AM -
6 Votes
Initialize brushes array difficult to manage
Otherwise, all the brushes in the array would point to the same SolidBrush.Answered | 4 Replies | 462 Views | Created by Naampie2000 - Wednesday, February 15, 2017 5:36 PM | Last reply by IronRazerz - Wednesday, February 15, 2017 9:48 PM -
0 Votes
How to convert a Brush into LinearGradientBrush
If you want to convert a Brush color in a LiearGradientBrush you simply create a LinearGradientBrush with two gradient stops, each with the solid color value.Answered | 2 Replies | 3244 Views | Created by Ramesh Velusamy - Wednesday, July 4, 2012 11:52 AM | Last reply by Martin Krüger - Wednesday, July 4, 2012 3:07 PM - Items 1 to 20 of 2096333 Next ›
No announcements