OCLOperators Navigate
No edit summary
(Updated Edited template to July 12, 2025.)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
<message>Write the content here to display this box</message>
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)
For this purpose, we introduced <code><span class="col-black">'''selfVM.Navigate(root,Class.ViewModels.YourTarget)'''</span></code>.


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


Please use with caution and as a last resort since logic like this will make it hard to statically see what your application does.
Use it with caution and as a last resort since logic like this will make it hard to statically see what your application does.
[[Category:OCLOperators]]
[[Category:OCLOperators]]
[[Category:OCL ViewModel Operators]]
{{Edited|July|12|2025}}

Latest revision as of 05:54, 20 January 2025

This page was created by Hans.karlsen@mdriven.net on 2020-04-28. Last edited by Edgar on 2025-01-20.

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.