📘 Screen Navigation
🏘️ NoesisGUI ▸ 🏠 Noesis Studio ▸ 📘 Working With Interactivity ▸ 📘 Screen Navigation
Overview
There exist many different approaches to setting up Screen Navigation systems within the framework to enable a user to navigate from one screen within the interface to another.
These can range from solutions as basic as simply toggling the visibility of Elements from one 'screen' to another, all the way to driving entire systems with backend code.
With that said, Noesis Studio provides a set of robust built-in systems that can be leveraged to achieve a 'best-practice' highly modular and dynamic architecture that can be easily set up and managed by Designers and Developers alike.
Screen Transition Animations
When a ContentControl Element changes the 'active screen' from one to another by swapping its Content Template, it is possible to create custom animations that dictate how the current screen 'exits', and how the incoming screen 'enters' during the transition from one screen to another.
TransitionContentPresenter Setup
To enable screen-to-screen transitions, a custom Template must first be made for the 📘 ContentControl Element, in which the default 📘 ContentPresenter Element is replaced with a 📘 TransitionContentPresenter Element as outlined in 📘 TransitionContentPresenter Configuration.
Transition Animation Setup
With the 📘 TransitionContentPresenter Element present within the 📘 ContentControl Element, the 📘 ContentControl Content Template can then be created or opened for edit.
Within the Content Template, transition animations can then be created by navigating to the 📘 Animation Panel, and 📘 Creating Storyboards.
Either one generic Storyboard animation can be created to handle the screen's transitions 'in' and 'out', or completely bespoke Storyboards can be created for each.
Once the desired Storyboards have been created, and the transitions designed, the root Element of the 📘 ContentControl Content Template can be selected. Within its 📘 Properties Panel, from its 'Transitions' section, the custom Storyboards to use during its transitions can be set.
Each Transition Type will automatically apply based on the direction of the transition from one screen to another:
| Enter | Defines the Storyboard to play when the screen is navigated towards, from anywhere.
|
| Exit | Defines the Storyboard to play when the screen is navigated away from.
|
| Reverse Enter | When a screen is part of an array of screens, defines the Storyboard to play when the screen is navigated towards, coming from a screen 'higher' in the index of screens.
|
| Reverse Exit | When a screen is part of an array of screens, defines the Storyboard to play when the screen is navigated away from, towards a screen 'lower' in the index of screens.
|