VCurrent and vSelected
No edit summary
No edit summary
Line 1: Line 1:
[[ViewModel|ViewModels]] create and maintain vCurrent_ and vSelected_ variables for each level of your ViewModel-nestings. The values maintained by the Framework reflect what the user has focused on/clicked last (vCurrent_), and when you allow multi-select in grids, the vSelected_ collection is maintained.  
[[ViewModel|ViewModels]] create and maintain vCurrent_ and vSelected_ variables for each level of your ViewModel-nestings.
 
The values maintained by the Framework reflect what the user has focused on/clicked last (vCurrent_), and when you allow multi-select in grids, the vSelected_ collection is maintained.  


The variables are strongly typed to match your nestings and get the postfix name from the nesting.
The variables are strongly typed to match your nestings and get the postfix name from the nesting.

Revision as of 06:03, 2 October 2023

ViewModels create and maintain vCurrent_ and vSelected_ variables for each level of your ViewModel-nestings.

The values maintained by the Framework reflect what the user has focused on/clicked last (vCurrent_), and when you allow multi-select in grids, the vSelected_ collection is maintained.

The variables are strongly typed to match your nestings and get the postfix name from the nesting.

See this article for a fuller discussion on how to cursor your ViewModel.

See also: How to use vCurrent and “self” correctly in viewmodels

This page was edited 70 days ago on 03/04/2024. What links here