NavigationEventArgs : no ExtraData in WPF?

12 replies. Last post: May 27, 2011 2:33 AM by Alastair Taylor
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Hi,

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:

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!!");
            }
        }
    }
}

ExtraData is always null.

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.

Any help would be appreciated.

Thanks in advance,

Alastair

 

All times are GMT -5. The time now is 8:03 PM.
Previous Next