Questions tagged [gradientstop]
14 questions
13
votes
3 answers
Blurry linear gradient stops in chrome
If I am using a linear gradient with multiple stops like this:
div
{
border: 1px solid black;
width: 100px;
height: 2000px;
display: inline-block;
background-image: linear-gradient(to bottom, #383937 0, #001500 35px,
#ffffff 35px,…

Anders Lindén
- 6,839
- 11
- 56
- 109
6
votes
4 answers
How to bind GradientStop Colours or GradientStops Property in Silverlight?
I want to be able to have a dynamic Gradient in Silverlight, such as below:

RoguePlanetoid
- 4,516
- 7
- 47
- 64
4
votes
2 answers
How do I animate a CSS gradient stop with a smooth transition to transparent?
I have the code bellow. How do I transition the gradient stop smoothly?
Its just abruptly changing from one to another.
Most examples of gradient animations I have seem use the gradient position, but I believe changing the gradient stop should be…

user5507535
- 1,580
- 1
- 18
- 39
2
votes
0 answers
How to make a diagonal css gradient without the colors blending together(a sharp color change) that's displaced 70% to the right?
I can't find any css gradient color generators that do what i'm trying to do.
A diagonal gradient with no blending, just a sharp color change from #252525 to #0099ff(for example), with the line where the two colors meet being about 70% from the left…

android.nick
- 11,069
- 23
- 77
- 112
2
votes
3 answers
Reverse repeating linear gradient
I'm using this piece of code to create a somewhat dotted border:
CSS
.strip {
height: 5px;
width: 80px;
background: repeating-linear-gradient(90deg, transparent, transparent 10px, #ffaacd 5px, #ffaacd 30px);
}
I'm trying to reverse the…

dokgu
- 4,957
- 3
- 39
- 77
2
votes
1 answer
Where to add reference for System.Windows.Media.GradientStopCollection
I have gone to the "Reference" in Solution Explorer and tried to add it from "Framework" under "Assemblies" in the Reference Manager. Is there something that I'm missing in term of having a service pack installed? The MSDN page…

fifamaniac04
- 2,343
- 12
- 49
- 72
1
vote
2 answers
How do you get a gradient background to work with bindings in .Net Maui iOS?
I ahve been trying to get Gradients to work in .Net Maui for the last few days on iOS but it seems to be crashing.
It works perfectly in Android.

GeoSaffer
- 143
- 12
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
2 answers
WPF: How do I bind the color property of a gradientstop that is located in a controlTemplate in vb code?
I need to do this in order to create a dynamic background brush for a custom control (inherits ContentControl). My custom control has two dependency properties: StartColor and EndColor. In the control template for the custom control, the control is…

Robin
- 1,022
- 1
- 11
- 24
1
vote
2 answers
Absolute GradientStops in LinearGradientBrushes
How can I go about specifying absolute Offsets for the GradientStops in my LinearGradientBrush?
I have a GridView with a LinearGradientBrush as the background:
…

sourcenouveau
- 29,356
- 35
- 146
- 243
0
votes
2 answers
Theme Resources to define gradient stop color UWP
I am creating UWP application.I have few LinearGradientBrushes, where the color is set directly in the LinearGradientBrush reference as GradientStops. However, I want to have a predefined set of colors defined in the resource distionary that I can…

sridhar patro
- 41
- 5
0
votes
2 answers
wpf bind ellipse gradientstop color to ivalueconverter
I have bind an ellipse to a checkbox and an iValueConverter (this works ... Fill(see below)).

user1562809
- 107
- 9
0
votes
1 answer
How to set #FF0B3663 to GradientStop Color
Right now I am doing;
var backGradient2 = new GradientStop();
backGradient1.Offset = 0.5;
backGradient1.Color = Colors.Yellow;
but I need to pass string like #FF0B3663
any idea?
thanks

RollRoll
- 8,133
- 20
- 76
- 135
0
votes
1 answer
Method to create any background in C#
I'm trying to create a method in C#, that uses colors.
public void Layoutgenerator(Color ColorA, Color ColorB)
{
LinearGradientBrush lgb = new LinearGradientBrush();
lgb.StartPoint = new Point(0, 0);
lgb.EndPoint = new…

sjantke
- 605
- 4
- 9
- 35