For example: there is a registration window and a creed input window (the heirs of the Window). How can you implement behavior similar to using VisualStateManager.GoToState() for windows? Now I have selected two UserControls - registration and entering credentials, and changing Visibility using the VisualStateManager . I also read about the possibility of using ContentPresenter or ContentHolder.Content , but with this approach there is no possibility of animating transitions from one to another. Is there the right approach?

  • What kind of animation do you need? If you add animation to replace Visibility with false / true for each view, this will not be enough? - VladD
  • I would not bother with several Window (and their heirs), given that this is essentially the only object that has a Native Handle in WPF. The option to substitute UserControl is closer. - Spawn

2 answers 2

More or less controlled transitions between pages can be done using Frame and Page inside it.

As for the animation, I really didn’t look for the animation, at least you can make an intermediate Page with animation.

    Use the Prism library from Microsoft, and specifically the regions from it. All you need to do to activate a new view is to call the RegisterViewWithRegion method of the IRegionManager.