silverlight - Line with different solid colors, solidcolorbrush with gradient stops but without the gradients -


In Silverlight (version 3 preview), I want to create a line with different solid colors, so any of the colors Do not shield it.

Actually I want to do the following:

  & lt; Line X1 = "0" X2 = "500" StrokeTechnness = "10" & gt; & Lt; Line.Stroke & gt; & Lt; LinearGradientBrush & gt; & Lt; GradientStop color = "blue" offset = "0.5" /> & Lt; GradientStop color = "Red" offset = "1" /> & Lt; / LinearGradientBrush & gt; & Lt; /Line.Stroke> & Lt; / Line & gt;  

But with a discrete change in color, and not red to blue color

I wonder if it is possible to use interaction without using multiple lines possible?

What you are looking for is

   & Lt; GradientStop color = "red" offset = "0.5" /> & Lt; / LinearGradientBrush & gt; & Lt; /Line.Stroke>  

They do not have transit from one place to another by setting up the sliding on top of each other.

Hope it helps.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -