C
C#Eliuniun

MVVM WPF - Change Color in ColorAnimation in Style ControlTemplate on Runtime

I have various styles with color animations, and I need to change the "To" color of a color animation within a control template while the program is running. I've attempted using both static and dynamic resources, but it either crashes during initialization or generates errors. I've searched online, but I can't find a solution to this problem.