4

I'm new to WPF and have a View Model with a DateTime property. I already implemented INotifyPropertyChanged and auto-update my view with properties contained in the view model. I want to wire the DateTime property to a simple animation. How would I trigger an animation when the DateTime value changes?

Jeff LaFay
  • 12,882
  • 13
  • 71
  • 101
  • Check out this answer ... http://stackoverflow.com/a/21985212/512365 The one linked as duplicate is asking something different. – KornMuffin May 05 '15 at 17:24

1 Answers1

2

You'll need a Style in the XAML for the object displaying the property that has a DataTrigger for the property changing with a Storyboard(see here: WPF MVVM Property Change Animation)

Community
  • 1
  • 1
Jackson Pope
  • 14,520
  • 6
  • 56
  • 80