﻿<?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 - NavigationParameter.Data is always null</title><link>http://www.intersoftsolutions.com/Community/Crosslight/NavigationParameterData-is-always-null/</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>NavigationParameter.Data is always null</title><link>http://www.intersoftsolutions.com/Community/Crosslight/NavigationParameterData-is-always-null/</link><pubDate>Fri, 22 Aug 2014 07:33:26 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The problem, parameter.Data is always null, has been forwarded to Crosslight development team and filed under CROSS-522.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I will keep this thread updated with any news I heard from the team regarding CROSS-522.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;&lt;strong&gt;Edited on August 26, 2014 11:00 PM&lt;br&gt;Reason: Update status of CROSS-522&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I'd like to inform you that a nightly build hotfix is available which resolves the problem, NavigationParameter.Data always return null. The nightly build is available in &lt;a href="http://git.intersoftpt.com/projects/CROS/repos/updates/browse/Crosslight2_0_5000_76" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please have the nightly build hotfix evaluated on your end and let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>NavigationParameter.Data is always null</title><link>http://www.intersoftsolutions.com/Community/Crosslight/NavigationParameterData-is-always-null/</link><pubDate>Wed, 13 Aug 2014 07:15:05 GMT</pubDate><dc:creator>michelsmit</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;I am trying to reuse a view model across multiple tabs in a MultiPageViewModelBase subclass and simply make it base its data on a parameter, but no matter what I try, the parameter data is always null in my viewmodel's Navigated() method.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Simple reproducible scenario:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;public class MyTabViewModel : MultiPageViewModelBase, IChildViewModel
{
               public MyTabViewModel()
               {
                              var parameter1 = "Section 1";
                              var parameter2 = "Section 2";

                              var items = new List&amp;lt;NavigationItem&amp;gt;();
                              items.Add(new NavigationItem("First Tab", new NavigationTarget(typeof(MySectionViewModel), new NavigationParameter(parameter1))));
                              items.Add(new NavigationItem("Second Tab", new NavigationTarget(typeof(MySectionViewModel), new NavigationParameter(parameter2))));

                              this.Items = items.ToArray();                                     
               }
}

public class MySectionViewModel : DataListViewModelBase&amp;lt;MyItem, IMyRepository&amp;gt;, IChildViewModel
{
               public override void Navigated(NavigatedParameter parameter)
               {
                              // parameter.Data is always null!
               }
}
&lt;/pre&gt;&lt;p&gt;Another issue: an overridden ShouldNavigate() in MyTabViewModel never gets called.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Any help would be greatly appreciated, but it seems like a bug that is really blocking our project progress, because we need this approach for dynamic data which isn't known beforehand.&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>