1

I have a DynamicResource called "resource" defined by a 3rd party. It references a SolidColorBrush and its color changes based on certain things.

I need to create a color animation that starts with the current color of "resource" but I don't know how to extract the Color from the resource in xaml and use it in the ColorAnimation.

Is this somehow possible without using code behind?

AnjumSKhan
  • 9,051
  • 1
  • 21
  • 33
Ignacio Soler Garcia
  • 20,097
  • 26
  • 114
  • 195
  • Is it really necessary to lookup the resource as DynamicResource? You might try to access it as StaticResource and then simply use that for the Source of a binding. – Clemens Jun 20 '14 at 15:46
  • @Clemens: yes it is because its value changes based on some logic defined by the 3rd party as well :S – Ignacio Soler Garcia Jun 20 '14 at 15:51

0 Answers0