Questions tagged [lineargradientbrush]

76 questions
1
vote
0 answers

OpacityMask from LinearGradientBrush with Absolute GradientStops in Silverlight 3

My question is similar to this one. However, the answer in that thread does not work for me, because I'm using the LinearGradientBrush for an opacity mask. I've got a grid with three rows:
Mike Fuchs
  • 12,081
  • 6
  • 58
  • 71
1
vote
1 answer

Color Code Rows in a Data Grid Based on a Gradient in VB.Net Forms

I have a grid containing rows flagged with different priorities. I want to color the high priority rows red, low ones blue, etc. I'd like to set the shade based on a mathmatically calculated gradient rather than arbitrarily assigning colors to…
Jeff
  • 8,020
  • 34
  • 99
  • 157
1
vote
1 answer

How Do I convert LinearGradientBrush object to a Style?

What is the XAML Style equivalent of LinearGradientBrush(Color.FromArgb(255, 154, 153, 153), Color.FromArgb(255, 51, 50, 50), 80) Ideally, I would like to make an Application Resource that I could reuse. Thanks!
LawMan
  • 3,469
  • 1
  • 29
  • 32
1
vote
2 answers

Json.net LinearGradientBrush serialization

I tried to serialize a LinearGradientBrush (System.Windows.Media.LinearGradientBrush) with Json.net but without success: var lg = new LinearGradientBrush(); lg.StartPoint = new Point(2,3); lg.EndPoint = new Point(3.1,0); lg.GradientStops = new…
Alberto
  • 15,626
  • 9
  • 43
  • 56
1
vote
2 answers

Attach system colors to LinearGradientBrush

In my application I'd like to create a fading line that has GradientStops with system colors, I'm trying to do it like this: