﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - How to composite multiple sub-ViewModels/Views into one ViewModel/View </title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-composite-multiple-sub-ViewModelsViews-into-one-ViewModelView/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to composite multiple sub-ViewModels/Views into one ViewModel/View </title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-composite-multiple-sub-ViewModelsViews-into-one-ViewModelView/</link><pubDate>Fri, 28 Nov 2014 18:55:11 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><description>&lt;p&gt;Dear Leo,&lt;/p&gt;&lt;p&gt;Yes, Crosslight supports composite view scenario since its data binding is built specifically for each view component. In your case, your view can have any number of list controls such as table view and collection view. Of course, you will have to register different ID for each of your view using the RegisterViewIdentifier method in the code behind of your view controller (you'll find this in most of our samples).&lt;/p&gt;&lt;p&gt;In your ViewModel, you need to have the property that represent the datasource for each list control. For instance, your ViewModel can have these properties:&lt;/p&gt;&lt;p&gt;public IList&amp;lt;Album&amp;gt; HotAlbums { &amp;nbsp;... }&lt;/p&gt;&lt;p&gt;public IList&amp;lt;Album&amp;gt; EditorPicks { ... }&lt;/p&gt;&lt;p&gt;Finally, make sure you bind these properties to the correct target ID in the binding provider. At the most minimum, you will need to bind the ItemsSource property and ItemBindingDescription property.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>How to composite multiple sub-ViewModels/Views into one ViewModel/View </title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-composite-multiple-sub-ViewModelsViews-into-one-ViewModelView/</link><pubDate>Fri, 28 Nov 2014 02:32:46 GMT</pubDate><dc:creator>hongliyu2002</dc:creator><description>&lt;p&gt;Assume I will create a home page as below:&lt;/p&gt;&lt;p&gt;&lt;img src="http://bcs.duapp.com/tt-pictures/HomePage.png" style="border:none;" alt=""&gt; &lt;/p&gt;&lt;p&gt;There are several sub-views under the home page view. Some of them are simple UIView, some of them are TableView/ScrollView, they bind to the different datasources. I tried nested viewmodels and tried to bind sub-views to the sub-viewmodels, but it does not work.&lt;/p&gt;&lt;p&gt;Do you have any solutions?&lt;/p&gt;</description></item><item><title>How to composite multiple sub-ViewModels/Views into one ViewModel/View </title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-composite-multiple-sub-ViewModelsViews-into-one-ViewModelView/</link><pubDate>Tue, 25 Nov 2014 08:05:16 GMT</pubDate><dc:creator>hongliyu2002</dc:creator><description>&lt;p&gt;In most apps Composite ViewModel is helpful, such as in Home Page. Multiple subviews can have different data sources. It is easy to implement this in native development environments, just create some subviews/controllers under a parent view and load data into them seperately. But in Crosslight, I don't know how to do this. The sismular one in Crosslight is MultiPageViewModelBase/UITabBarController, it can hold multiple subviews.&lt;/p&gt;&lt;p&gt;Can you give me some suggestions?&lt;/p&gt;</description></item></channel></rss>