﻿<?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 - Lounge - Is possible create Dynamic tabs with Multi page ViewModel?</title><link>http://www.intersoftsolutions.com/Community/Lounge/Is-possible-create-Dynamic-tabs-with-Multi-page-ViewModel/</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/Lounge/Is-possible-create-Dynamic-tabs-with-Multi-page-ViewModel/</link><pubDate>Wed, 21 Oct 2015 06:15:24 GMT</pubDate><dc:creator>Arief</dc:creator><category>Crosslight</category><category>MultiPageViewModel</category><category>Tabs</category><description>&lt;p&gt;Hi Cristobal&lt;/p&gt;&lt;p&gt;Did you mean it won't work in iOS?&lt;/p&gt;&lt;p&gt;I will check it and report back to you.&lt;/p&gt;</description></item><item><title>Is possible create Dynamic tabs with Multi page ViewModel?</title><link>http://www.intersoftsolutions.com/Community/Lounge/Is-possible-create-Dynamic-tabs-with-Multi-page-ViewModel/</link><pubDate>Tue, 20 Oct 2015 07:29:47 GMT</pubDate><dc:creator>cristobal@sbsoftware.es</dc:creator><category>Crosslight</category><category>MultiPageViewModel</category><category>Tabs</category><description>It works on Android, in ios without works</description></item><item><title>Is possible create Dynamic tabs with Multi page ViewModel?</title><link>http://www.intersoftsolutions.com/Community/Lounge/Is-possible-create-Dynamic-tabs-with-Multi-page-ViewModel/</link><pubDate>Tue, 06 Oct 2015 05:07:31 GMT</pubDate><dc:creator>Arief</dc:creator><category>Crosslight</category><category>MultiPageViewModel</category><category>Tabs</category><description>&lt;p&gt;Hi Cristobal,&lt;/p&gt;&lt;p&gt;Good new for you! yes it was possible please check the sample for detail:&lt;/p&gt;&lt;p&gt;&lt;a href="https://onedrive.live.com/download?resid=9F657B5249D6BB8D!113&amp;amp;authkey=!AM5urVz4hrhh4CI&amp;amp;ithint=file%2czip" target="_blank"&gt;https://onedrive.live.com/download?resid=9F657B5249D6BB8D!113&amp;amp;authkey=!AM5urVz4hrhh4CI&amp;amp;ithint=file%2czip&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Is possible create Dynamic tabs with Multi page ViewModel?</title><link>http://www.intersoftsolutions.com/Community/Lounge/Is-possible-create-Dynamic-tabs-with-Multi-page-ViewModel/</link><pubDate>Thu, 01 Oct 2015 09:29:43 GMT</pubDate><dc:creator>cristobal@sbsoftware.es</dc:creator><category>Crosslight</category><category>MultiPageViewModel</category><category>Tabs</category><description>&lt;p&gt;My MultiPageViewModel is a news view, and the number of categories can be changed (for example, news currently has three categories, tab of present , tab of novelties and tab of General News). I want to make a dynamic MultipageViewModel because the app could have new tabs in a near future.&lt;/p&gt;&lt;p&gt;All the tabs contain a ListViewFragme with the same structure (only with a change in the news inside)&lt;/p&gt;&lt;p&gt;The tabs are in the rest request (similar to this)&lt;/p&gt;&lt;pre&gt;{Category: "GENERAL",
News: 9
},
{
Category: "ACTUALIDAD",
News: 31
},
{
Category: "NOVEDADES",
News: 10
}
&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description></item><item><title>Is possible create Dynamic tabs with Multi page ViewModel?</title><link>http://www.intersoftsolutions.com/Community/Lounge/Is-possible-create-Dynamic-tabs-with-Multi-page-ViewModel/</link><pubDate>Wed, 30 Sep 2015 04:49:30 GMT</pubDate><dc:creator>Arief</dc:creator><category>Crosslight</category><category>MultiPageViewModel</category><category>Tabs</category><description>&lt;p&gt;Hi Cristobal,&lt;br&gt;&lt;br&gt;I will ask this to our developer, but as far as i know it will be very hard and maybe impossible because android need to count the width first which actually done in when initializing, so if you dynamically add new tab, i don't think it is possible.&lt;br&gt;&lt;br&gt;But i will report back to you and hopefully create a sample for this scenario.&lt;br&gt;&lt;br&gt;If you want you could tell us your scenario, maybe we can helps give a better, safer alternative and more compliance with standard of each platform.&lt;br&gt;&lt;br&gt;Best Regards,&lt;br&gt;Arief&lt;/p&gt;</description></item><item><title>Is possible create Dynamic tabs with Multi page ViewModel?</title><link>http://www.intersoftsolutions.com/Community/Lounge/Is-possible-create-Dynamic-tabs-with-Multi-page-ViewModel/</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>