ViewInView
No edit summary
No edit summary
Line 8: Line 8:
# Make the ViewModel column return a valid name of a ViewModel compatible with the object on the table row
# Make the ViewModel column return a valid name of a ViewModel compatible with the object on the table row
Now the table is not rendered - instead a ListView in WPF, and a list of IFrames in turnkey that contains the resolved ViewModel rooted in the object per row in the table.
Now the table is not rendered - instead a ListView in WPF, and a list of IFrames in turnkey that contains the resolved ViewModel rooted in the object per row in the table.
In turnkey the whole application is rendered in such a cell with a special mode given by Turnkey/AngularAppUC instead of Turnkey/AngularApp

Revision as of 09:55, 18 May 2021

2021-05-18 11h45 14.png

ViewInView (View in View) is a way to bring one View into another view as a control.

You can use the UIFirst definition helper to set this up or you can do it manually:

  1. Create a list of objects - so that it renders as a Table
  2. On the Nesting of the Table add TaggedValue "ViewModel" with value true
  3. Delete all columns from the table and have only 1 column named ViewModel
  4. Make the ViewModel column return a valid name of a ViewModel compatible with the object on the table row

Now the table is not rendered - instead a ListView in WPF, and a list of IFrames in turnkey that contains the resolved ViewModel rooted in the object per row in the table.

In turnkey the whole application is rendered in such a cell with a special mode given by Turnkey/AngularAppUC instead of Turnkey/AngularApp

This page was edited 80 days ago on 02/26/2024. What links here