I am using MVVm in my WPF application. I am currently playing around with animating a grid so that when a user selected a particular item in a combobox I want my grid to animate as it expand. I have a property in my View Model that I want to bind to trigger the animation in my grid. How do we do this in MVVM? So far I have recently found a solution using
EventTrigger RoutedEvent ="SampleGridEventName"
is there any way to use other triggers to bind to a property in my ViewModel?Something like
Trigger BlahBlah ="{Binding ExpandGrid}"
Yes. Style has DataTrigger which also has EnterActions property. Animations are stored in resources. That’s the trick.