I think you can use
Device.StartTimer
To change the color .
otherwise The animation seems that can not change the color.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
Is there a way to animate Color property of SolidColorBrush from color1 to color2?
Thanks
I think you can use
Device.StartTimer
To change the color .
otherwise The animation seems that can not change the color.
@Polat Pınar Do you mean change the Color's value of the SolidColorBrush? I tested a basic demo about the function, it work fine. Here is the related code, you could refer to it.
Specify a value to brush in code behind.
<Button Clicked="Button_Clicked" .../>
<Frame x:Name="frame"...>
<Frame.Background>
<SolidColorBrush Color="{Binding TheBackground}" />
</Frame.Background>
</Frame>
private void Button_Clicked(object sender, EventArgs e)
{
frame.Background = Brush.DeepPink;
}