Tell me whether it is possible to determine the animation of the element in the View and when changing a certain property in the ViewModel, launch it. Roughly speaking, can the OnPropertyChanged("Name") event trigger an animation in any of the elements? I have a ToggleButton that, when going from False to True, should start an animation for the next element. while he himself is tied to a property in the ViewModel: IsChecked = "{Binding ToogleButtonIsChecked, Mode = TwoWay}"

edit: the ToogleButten switch changes the state of the model. When the state changes from false to true, the text changes through the animation. The text smoothly changes color, content, then it is updated to the one that gives it a ViewModel. Text1 -> Wait ... (changes color and content for a while) -> Text2

  • And what have the model? There is in the title, but in the body something about the model is not words. Well, okay ... Trigger tried? Tie it to ToogleButtonIsChecked , or to ToggleButton . Or I misunderstood the question? - EvgeniyZ 1:43
  • @EvgeniyZ, corrected the title. Since on the page there are several such pairs, the button is the neighboring_element, then for each element it would not be desirable to register a connection with each button through its name - Mihail
  • Possible duplicate of the question: Fading backlight of the updated item in the Listbox / WPF - Andrey NOP
  • Describe in more detail your task. What kind of animation do you need, and what should it show? - VladD
  • @VladD, updated topic - Mihail

0