Log in

OCLOperators Navigate

From MDrivenWiki
Revision as of 06:56, 25 April 2023 by Stephanie (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

When you need conditional navigation, it can be hard to reach the static definition you want to have with Actions that have static VIewModel references alone.

For this purpose, we introduced selfVM.Navigate(root,Class.ViewModels.YourTarget).

This action switches the view. You may want to have expressions for what ViewModelName you use for whatever root you use.

Use it with caution and as a last resort since logic like this will make it hard to statically see what your application does.