﻿<?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 - MultiPageViewModel</title><link>http://www.intersoftsolutions.com/Community/Tags/MultiPageViewModel/</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>Is possible create Dynamic tabs with Multi page ViewModel?</title><link>http://www.intersoftsolutions.com/Community/Tags/MultiPageViewModel/</link><pubDate>Tue, 29 Sep 2015 08:58:27 GMT</pubDate><dc:creator>cristobal@sbsoftware.es</dc:creator><category>Crosslight</category><category>MultiPageViewModel</category><category>Tabs</category><description>&lt;p&gt;I want to create a MultiPageViewModel that I don't know how many tab have.&lt;/p&gt;&lt;p&gt;Inside of ViewModel I request to webservice the number of tabs should have my MultiPageViewModel.&lt;/p&gt;&lt;p&gt;After, i try to create my NavigationItems with this response.&lt;/p&gt;&lt;pre&gt;public override void Navigated(NavigatedParameter parameter)
{
   GetCategories();
   this.UpdateResources();
}&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;pre&gt;public async void GetCategories()
{
   try
   {
      this.ActivityPresenter.Show("Cargando los datos del socio...", ActivityStyle.LargeIndicator);

      var result = await Repository.GetCategories();
      if (result != null)
      {
         List&lt;navigationitem&gt; items = new List&lt;navigationitem&gt;();
         foreach (var category in result)
         {
            items.Add(new NavigationItem(string.Format("{0}({1})", category.Category, category.News), typeof(TabsListViewModel)));
         }

         this.Items = items.ToArray();
         this.UpdateResources();
      }
   }
   catch (Intersoft.Crosslight.RestClient.HostUnreachableException)
   {
      this.MessagePresenter.Show(
          "Connection error...");
   }
   catch (Exception ex)
   {
      this.MessagePresenter.Show("Error: 0x0002");
   }
   finally
   {
      this.ActivityPresenter.Hide();
   }
}
&lt;/navigationitem&gt;&lt;/navigationitem&gt;&lt;/pre&gt;

Make this is possible?</description></item></channel></rss>