Change GradientStop Color in UNO

I’m trying to change the GradientStop Color in UNO but don’t work.

I have this:

  <Rectangle Alignment="VerticalCenter" Height="100." Width="90%">
      <LinearGradient StartPoint="0,0" EndPoint="1,0">
          <GradientStop Offset="0.0" Color="0,0,0,1" />
          <GradientStop ux:Name="ColorStop" Offset="1.0" Color="0.5,0.5,0.5,1" />
  <Button Text="Color 1" Margin="20">
      <Clicked Handler="ChangeColor" />

And in UNO:

void ChangeColor(object sender, ClickedArgs args){
    ColorStop.Color = float4(0.97f,0.22f,0.18f,1f);

But nothing. How can achieve this?

Here is a example project:


Thanks for the report. There is a bug in LinearGradient making it not redraw when animated. I have fixed the bug :slight_smile: Will be included in the upcoming release