brushes Questions

4

Solved

In WPF,I can set the background of a stack panel using the below code stackPanelFlasher.Background = Brushes.Aqua; How can I set the color as a hex color code for example #C7DFFC?
Zarger asked 14/7, 2010 at 13:33

3

Solved

I have a brush that colors the background of a header. I like the way the brush looks but would like it to fade to transparent in the bottom third. Any ideas how to do this? <LinearGradientBrus...
Boracite asked 20/7, 2010 at 20:50

7

Solved

I'm looking for a method to pick a random Brush in Brushes collection (Aqua,Azure, ...Black,...). Any clue?
Gascony asked 21/5, 2011 at 20:54

2

Solved

I am creating some wpf resource dictionaries with all the styles for an application! I have a few LinearGradientBrushes, where the color is set directly in the LinearGradientBrush reference as Grad...
Crigger asked 2/12, 2009 at 10:20

2

Below is a (very naive) implementation of Conway's Game of Life in WPF. It's just a demo... xaml: <Window x:Class="wpf_conway_life_2013_05_19.MainWindow" xmlns="http://schemas.microsoft.com/w...
Hut asked 20/5, 2013 at 4:10

1

I wanna draw the transparent area with brush, but my code work not very well.I think someone can help me here. My code : // Handles the start of a touch - (void)touchesBegan:(NSSet *)touches with...
Uphroe asked 13/4, 2013 at 2:58

4

Solved

I have a property that allows the string name of a known colour to be sent to my control. The property only accepts proper known colour names, like "Red" or "Blue" private KnownColor _UseColor = ...
Rombert asked 28/2, 2013 at 11:17

1

Solved

I have a LinearGradientBrush defined as follows. I want to use this somewhere in my xaml but I want to change the opacity in this particular case (only in this instance, not everywhere I use it). A...
Safier asked 27/2, 2012 at 20:2

2

Solved

There isn't one called Pens, that's for sure, but it's too odd not to find it. Is it really absent, or am I being blind? (I'm just looking for a convenience class - for example, Colors.Red and Bru...
Sounding asked 28/12, 2011 at 1:11

1

Solved

I'm new to WPF and still having some basic problems. I have a control from devcomponents that defaults to a blue border. My textboxes etc. have a more grey colour. I want the devcomponents control...
Kight asked 16/9, 2011 at 15:31

2

Solved

An application our company is working on currently displays many rectangle shapes with gradients to draw 'Tiles'. An internal discussion came about that posed a question of performance. These tiles...
Glassine asked 13/1, 2010 at 18:38

1

Solved

Perhaps I'm having a Post-Ballmer-Peak Moment. I'm hoping that someone can help point out the obvious to me. Why does this code generate a context menu on right click: <Canvas Background="Tra...
Showmanship asked 16/5, 2009 at 3:27
1

© 2022 - 2024 — McMap. All rights reserved.