WPF MVVM Property Change Animation

前端 未结 4 1019
盖世英雄少女心
盖世英雄少女心 2020-12-13 22:30

I am looking for a clean way to start an animation that will have dynamic values. Basically I want to do an animation where an element changes width based on the data of an

4条回答
  •  余生分开走
    2020-12-13 23:25

    Here is the solution I ended up with. To do the Animation based on data in my ViewModel I used a DataTrigger. Below is my Style for the control.

    
    

提交回复
热议问题