﻿<?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 - ClientUI - Passing Objects to a Page</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Passing-Objects-to-a-Page/</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>Passing Objects to a Page</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Passing-Objects-to-a-Page/</link><pubDate>Tue, 13 Aug 2013 07:57:20 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I created a simple project of WPF based on the described scenario.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;In the sample project, user navigates to another page by clicking a UXNavigationButton. It navigates using Command and CommandParameter which is provided from ViewModel. In the ViewModel, the object is passed as ExtraData.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Next, in the next ViewModel, the ExtraData is obtained from the NavigatedCommand property.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;For more detail information, please kindly check the attached sample.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Passing Objects to a Page</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Passing-Objects-to-a-Page/</link><pubDate>Mon, 12 Aug 2013 11:19:08 GMT</pubDate><dc:creator>hoffmaster@aretechllc.com</dc:creator><description>&lt;p&gt;I am developing a multi page WPF application where I would like to pass an object from one page to another.  I have a Main Window with a UXFrame and URI Mapping.  When I attempt to navigate to a page while passing it an object (in my case I want to pass it a database object called Patient). &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'courier new', tahoma; font-size: 9pt;"&gt;&amp;lt;Intersoft:UriMapping Uri="/TrainingOptions/ {SelectedPatient}" MappedUri="/Views/TrainingOptionsPage.xaml?patient={SelectedPatient}" /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I then navigate in my ViewModel after a confirmation dialog.&lt;/p&gt;&lt;pre&gt;Uri navUri = new Uri("/TrainingOptions/ " &amp;#43; SelectedPatient, UriKind.RelativeOrAbsolute);
                NavigationServiceProvider.Navigate(navUri);&lt;/pre&gt;
&lt;p&gt;How do I pass this vaiable to the next view model using a MVVM pattern?  I have seen exaples in the documentation, but they do not say how to pass objects using MVVM.  I have used a messenger class in the past but there has to be an easier way.  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>