OCLOperators Navigate
(Created page with "When you need conditional navigation it can be hard to reach the static definition you want to Actions that has static VIewModel-references alone. For this purpose we introdu...")
 
No edit summary
Line 1: Line 1:
When you need conditional navigation it can be hard to reach the static definition you want to Actions that has static VIewModel-references alone.
When you need conditional navigation it can be hard to reach the static definition you want to have with Actions that has static VIewModel-references alone.


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

Revision as of 12:45, 28 April 2020

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

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

This action switch the view and you may want to have expression for what ViewModelName you use of what root you use.

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

This page was edited 92 days ago on 02/10/2024. What links here