﻿<?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 - NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</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>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Fri, 27 May 2011 02:33:07 GMT</pubDate><dc:creator>Alastair</dc:creator><category>ClientUI</category><category>WPF</category><description>&lt;p&gt;Works like a dream Riendy - many thanks for this and the quick turnaround. &lt;/p&gt;&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Alastair&lt;/p&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Sun, 22 May 2011 22:12:28 GMT</pubDate><dc:creator>Riendy</dc:creator><category>ClientUI</category><category>WPF</category><description>&lt;p&gt;Hello Alastair,&lt;/p&gt;&lt;p&gt;I've already sent the release nightly build to you.&lt;/p&gt;
&lt;p&gt;Please do not hesitate to ask us if you still have any question.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Riendy Setiadi&lt;/p&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Sat, 21 May 2011 08:00:34 GMT</pubDate><dc:creator>Alastair</dc:creator><category>ClientUI</category><category>WPF</category><description>&lt;p&gt;Thanks Riendy, have emailed you the address.&lt;/p&gt;&lt;p&gt;Appreciate the efforts here folks, thanks.&lt;/p&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Thu, 19 May 2011 04:31:45 GMT</pubDate><dc:creator>Riendy</dc:creator><category>ClientUI</category><category>WPF</category><description>&lt;p&gt;Hello Alastair,&lt;/p&gt;&lt;p&gt;Our development team has fixed your issue, and now I want to send the release nightly build to you. Could you please let me know what is your email address?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Riendy&lt;/p&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Wed, 18 May 2011 07:42:00 GMT</pubDate><dc:creator>jimmyps</dc:creator><category>ClientUI</category><category>WPF</category><description>Hi Alastair,&lt;br /&gt;&lt;br /&gt;The released 13th build doesn't seem to include the check-in for this particular fix. It was the dev internal nightly build that I referred.&lt;br /&gt;&lt;br /&gt;Our support team will send you the release nightly build that includes the fix.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jimmy&lt;br /&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Tue, 17 May 2011 23:04:52 GMT</pubDate><dc:creator>Alastair</dc:creator><category>ClientUI</category><category>WPF</category><description>&lt;p&gt;Hi Jimmy.&lt;/p&gt;
&lt;p&gt;Still failing with no ExtraData. I grabbed the nightly from 13th May, sample with DLLs attached. Maybe I'm doing something odd?&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Alastair&lt;/p&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Tue, 17 May 2011 23:01:42 GMT</pubDate><dc:creator>Alastair</dc:creator><category>ClientUI</category><category>WPF</category><description>&lt;p&gt;[moved post below]&lt;/p&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Wed, 11 May 2011 11:39:05 GMT</pubDate><dc:creator>jimmyps</dc:creator><category>ClientUI</category><category>WPF</category><description>Hi Alastair,&lt;br /&gt;&lt;br /&gt;Thank you for providing a simple working sample.&lt;br /&gt;&lt;br /&gt;Using the development's nightly build, it's confirmed that the OriginalUri is now captured properly. As the results, your application will automatically navigate to the Settings page after the successful login. This has been tested to work properly, and should exhibit identical behaviors and results as in the Silverlight counterpart.&lt;br /&gt;&lt;br /&gt;The fixes for the ExtraData will be included in the upcoming hotfix scheduled later this month. If you preferred to receive the nightly build for early testing, please send an email to technical [at] intersoftpt.com and also please specify your subscription ID.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jimmy &lt;br /&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Wed, 11 May 2011 04:18:00 GMT</pubDate><dc:creator>Alastair</dc:creator><category>ClientUI</category><category>WPF</category><description>
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;Hi Jimmy,&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;I've attached a full sample. It's the vanilla Navigation app with authentication added. I picked apart the Silverlight samples and an earlier custom authentication sample on the boards. The examples are great by the way...&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;The authentication manager accepts "user" and "password" as a good credential. This is just for the example, obviously the backend authentication will be slightly stronger..;)&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;The settings page is set to require authentication: RequiresAuthentication="True"&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;When we navigate to Settings first time around, the LoginForm is invoked to get the credential. If this is successful, we return to the Home page, as the ExtraData doesn't contain the URI of the Settings page that invoked the form.&lt;/p&gt;&lt;pre&gt;   public partial class LoginForm : UXPage
    {
        public LoginForm()
        {
            InitializeComponent();
        }
        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // Get a reference to the NavigationService that navigated to this Page
            // If the login page was redirected from a protected page,
            // the e.ExtraData will include the URI of the original caller page.
            if (e.ExtraData != null &amp;amp;&amp;amp; e.ExtraData is NavigationOptions)
            {
                // bind the URI to our view model, so we can redirect back 
                // to the original page when the login succeeded.
                LoginFormViewModel viewModel = this.DataContext as LoginFormViewModel;
                viewModel.OriginalUri = ((NavigationOptions)e.ExtraData).NavigateUri;
            }
        }
    }&lt;/pre&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;&lt;span style="font-family: 'courier new', tahoma; white-space: pre; font-size: 12px"&gt;&lt;span style="font-family: 'lucida sans unicode'; white-space: normal; font-size: 13px"&gt; &lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;We can then navigate manually to the Settings page, and it displays if the authentication was ok. &lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;I was hoping to drop into the Settings page directly once the authentication is good:&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;&lt;/p&gt;&lt;pre&gt;            if (loginOperation.LoginSuccess)
            {
                // Login success, navigate to the page that originally requesting access
                
                // need to make ui calls on same thread as ui (sta threading model)
                // callback is created as a different thread
                // http://stackoverflow.com/questions/351676/problem-using-multithreading-with-simple-wpf-app 
                System.Windows.Application.Current.Dispatcher.Invoke(new System.Action(() =&amp;gt; { NavigationServiceProvider.Navigate(this.OriginalUri); }));
            }
&lt;/pre&gt;
&lt;p&gt;It's the OriginalUri not being set to SettingsPage because of no ExtraData. So we default to Home.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial; font-size: small"&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;&lt;span class="Apple-style-span" style="font-family: 'lucida sans unicode'"&gt;I'm pretty new to WPF - and as I said - ClientUI is an excellent product and making my life a lot easier. But I may&amp;nbsp;have&amp;nbsp;missed something&amp;nbsp;obvious.&amp;nbsp;Is there there a way to override the framework and provide the extra data myself?&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;&lt;span style="font-family: 'lucida sans unicode'"&gt;All the best,&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px"&gt;&lt;span class="Apple-style-span" style="font-family: 'lucida sans unicode'"&gt;&lt;span style="font-family: 'lucida sans unicode'"&gt;Alastair&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Tue, 10 May 2011 11:00:48 GMT</pubDate><dc:creator>jimmyps</dc:creator><category>ClientUI</category><category>WPF</category><description>Hello Alastair,&lt;br /&gt;&lt;br /&gt;The only way to provide the extra data is through the 2nd parameter in the .Navigate method of the UXFrame. This conforms to the extra data passing mechanism in WPF navigation concept. However, there was a minor issue in the current build that prevent the extra data to be passed correctly in certain scenarios, this has been clarified fixed in the nightly development build.&lt;br /&gt;&lt;br /&gt;While we're at the navigation topic, could you provide more information about the authentication issue that you're encountering? This will allow us to quickly shot the issues to be included into our monthly hotfix release.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jimmy&lt;br /&gt;</description></item><item><title>NavigationEventArgs : no ExtraData in WPF?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/NavigationEventArgs--no-ExtraData-in-WPF/</link><pubDate>Sat, 07 May 2011 20:16:11 GMT</pubDate><dc:creator>Alastair</dc:creator><category>ClientUI</category><category>WPF</category><description>Hi,
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I cannot for the life of me get any ExtraData when navigating from one page to the other. I've reduced this to a simple test on a vanilla  "Basic Navigation Application (WPF)" project:&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;pre&gt;namespace ClientUIWPFNavApp1.Views 
{
    public partial class Settings : UXPage 
    {
        public Settings()
        {
            InitializeComponent();
        }
        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (e.ExtraData != null)
            {
                Console.WriteLine("OnNavigatedTo | e.ExtraData != null | Success!!");
            }
            else
            {
                Console.WriteLine("OnNavigatedTo | e.ExtraData == null | Failed!!");
            }
        }
    }
}
&lt;/pre&gt;&lt;p&gt;ExtraData is always null.&lt;/p&gt;&lt;p&gt;I'm putting together a single sign on, and this is preventing the login page from redirecting to the RequiresAuthentication="True" page on a good authentication.&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Thanks in advance,&lt;/p&gt;&lt;p&gt;Alastair&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>