title: How to set Page Navigation from Listbox to another Page?
body: <p>Hi am using XAML file given below.I want to Navigate Listbox selected item to another page.</p>
  
  <pre><code> &lt;ListBox x:Name="NotchsList11"  Grid.ColumnSpan="2"
             Margin="0,0,0,0" Grid.Row="3" HorizontalAlignment="left" Width="720"  Grid.RowSpan="2"&gt;
          &lt;ListBox.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                    &lt;StackPanel Margin="0,0,0,0"  Grid.ColumnSpan="3" x:Name="ControlsPanel"
                          Grid.Column="0"
                          Height="215"
                          VerticalAlignment="Top"&gt;
                          &lt;StackPanel Background="#eb2427" Orientation="Horizontal"&gt;
                              &lt;TextBlock Grid.Row="1"  FontFamily="Calibri" FontSize="34" FontWeight="Bold"  FontStyle="Normal" Margin="10,0,0,0"
                                  Text="{Binding name}"
                                     /&gt;               
                          &lt;/StackPanel&gt;
                          &lt;ScrollViewer ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Disabled"&gt;
                          &lt;StackPanel&gt;
                          &lt;StackPanel VerticalAlignment="Top" Width="Auto"&gt;
                                   &lt;ListBox ItemsSource="{Binding Images}" SelectionChanged="NotchsList11_SelectionChanged" Width="Auto" ScrollViewer.VerticalScrollBarVisibility="Disabled"&gt;
                                      &lt;ListBox.ItemsPanel&gt;
                                              &lt;ItemsPanelTemplate&gt;
                                                  &lt;StackPanel Orientation="Horizontal" VerticalAlignment="Top"&gt;
                                                  &lt;/StackPanel&gt;
                                              &lt;/ItemsPanelTemplate&gt;
                                          &lt;/ListBox.ItemsPanel&gt;
                                      &lt;ListBox.ItemTemplate&gt;
                                          &lt;DataTemplate&gt;
                                              &lt;Image Source="{Binding}" Width="160" Height="120" VerticalAlignment="Top"&gt;&lt;/Image&gt;
                                          &lt;/DataTemplate&gt;
                                      &lt;/ListBox.ItemTemplate&gt;
                                  &lt;/ListBox&gt;
                       &lt;/StackPanel&gt;
                   &lt;/StackPanel&gt;
              &lt;/ScrollViewer&gt;         
            &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
        &lt;/ListBox.ItemTemplate&gt;
      &lt;/ListBox&gt;
  </code></pre>
  
  <p>My xml file given below</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
    &lt;root&gt;
     &lt;Categories&gt;
       &lt;Category name="Photos"&gt;
        &lt;Articles&gt;
         &lt;article  title="Sherawat's"&gt;
          &lt;FullContent&gt;
           &lt;style&gt; img {padding:2px;} &lt;/style&gt;&lt;p&gt; &lt;img alt=" Sherawat" pimcore_disable_thumbnail="true" pimcore_id="5853" pimcore_type="asset" src="http://feb2013/bolly---sherawat-s-upcoming-movie-dirty-politics/90_mallika-sherawat_bolly.jpg" style="width: 500px; height: 370px; float: left;" /&gt;&lt;/p&gt; &lt;p&gt;Sherawat is all set to begin shooting for&amp;nbsp;&lt;em&gt;Dirty Politics&lt;/em&gt;&amp;nbsp;where she plays Bhanwari Devi, a nurse whose murder hit the headlines last year. Meanwhile, she gets talking on&amp;nbsp;Hollywood where she has not really had any meaty roles.&lt;/p&gt;
          &lt;/FullContent&gt;
          &lt;thumb_image&gt;
            &lt;image  url="http://sss.com/Photo1.jpeg"/&gt;"/&gt;
          &lt;/thumb_image&gt;
         &lt;/article&gt;
         &lt;article articleid="2684" title="Steals the Mai Show"&gt;
          &lt;FullContent&gt;
            &lt;div id="container" class="cf"&gt;
             &lt;link rel="stylesheet" href="http://sss.com/imageslider/app/css/demo.css" type="text/css" media="screen" /&gt; &lt;link rel="stylesheet" href="http://sss.com/imageslider/app/css/flexslider.css" type="text/css" media="screen" /&gt;&lt;div id="main" role="main"&gt; &lt;section class="slider"&gt; &lt;div class="flexslider"&gt; &lt;ul class="slides"&gt;&lt;li&gt;Sonam Kapoor&lt;img src="http://sss.com//website/var/tmp/thumb_5814_1_01feb2013__appfeed.jpeg" alt="Kapoor"/&gt;/li&gt; &lt;/ul&gt;&lt;/li&gt;
           &lt;/div&gt;
        &lt;/FullContent&gt;
        &lt;thumb_image&gt;
          &lt;image  url="http://Photo2.jpeg"/&gt;"/&gt;
        &lt;/thumb_image&gt;
       &lt;/article&gt;
      &lt;/Articles&gt;
  &lt;/Category&gt;
  &lt;Category name="Videos"&gt;
    &lt;Articles&gt;
      &lt;article articleid="415" title=" Dirty Politics"&gt;
       &lt;FullContent&gt;
         &lt;style&gt; img {padding:2px;} &lt;/style&gt;&lt;p&gt; &lt;img alt="Sherawat" pimcore_disable_thumbnail="true" pimcore_id="5853" pimcore_type="asset" src="http://sss.com/bolly/feb2013/bolly---sherawat-s-upcoming-movie-dirty-politics/90_sherawat_bolly.jpg" style="width: 500px; height: 370px; float: left;" /&gt;&lt;/p&gt;
       &lt;/FullContent&gt;
       &lt;thumb_image&gt;
         &lt;image  url="http://Video1.jpeg"/&gt;"/&gt;
       &lt;/thumb_image&gt;
      &lt;/articles&gt;
      &lt;article articleid="68" title="Digital!"&gt;
       &lt;FullContent&gt;
      &lt;p&gt; Touch, tap, flip, slide! You don&amp;#39;you experience it.&lt;/p&gt; &lt;br/&gt;&lt;br/&gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;
       &lt;/FullContent&gt;
       &lt;thumb_image&gt;
         &lt;image  url="http://Video2.jpeg"/&gt;"/&gt;
       &lt;/thumb_image&gt;
     &lt;/article&gt;
   &lt;/Article&gt;
  &lt;/Category&gt;
  &lt;Category name="Bolly"&gt;
    &lt;Articles&gt;
     &lt;article articleid="415" title="upcoming movie"&gt;
      &lt;FullContent&gt;
       &lt;style&gt; img {padding:2px;} &lt;/style&gt;&lt;p&gt; &lt;img alt="Sherawat" pimcore_disable_thumbnail="true" pimcore_id="5853" pimcore_type="asset" src="http://sss.com/bolly/feb2013/bolly---sherawat-s-upcoming-movie-dirty-politics/90_sherawat_bolly.jpg" style="width: 500px; height: 370px; float: left;" /&gt;&lt;/p&gt;
      &lt;/FullContent&gt;
      &lt;thumb_image&gt;
       &lt;image url="http://sss.com/website/var/tmp/thumb_5854_90_mallika-sherawat_thumb_bolly__forfeed.jpeg"/&gt;
      &lt;/thumb_image&gt;
     &lt;/articles&gt;
     &lt;article articleid="436" title="Surprise Package"&gt;
       &lt;Description&gt;
         There was more than just good music at the trio's recent performance
       &lt;/Description&gt;
       &lt;FullContent&gt;
         &lt;style&gt; img {padding:2px;} &lt;/style&gt;&lt;p&gt; &lt;img alt="Akcent" pimcore_disable_thumbnail="true" pimcore_id="6110" pimcore_type="asset" src="http://dev2.mercuryminds.com/global/feb2013/surprise-package-at-akcent-concert/18_akcent_global.jpg" style="width: 370px; height: 500px; float: left;" /&gt;&lt;/p&gt;
       &lt;/FullContent&gt;
       &lt;thumb_image&gt;
         &lt;image url="http://sss.com/website/var/tmp/thumb_6109_18_akcent_thumb__forfeed.jpeg"/&gt;
       &lt;/thumb_image&gt;
      &lt;/article&gt;
     &lt;/Article&gt;
    &lt;/Category&gt;
   &lt;/Categories&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>My MainPage.xaml.cs code</p>
  
  <pre><code>      void ParseXMLFile(string  dataInXmlFile)
      {
          try
          {
            //Parsing XML File
  
              XDocument xmlDoc = XDocument.Parse(dataInXmlFile);
  
              var query = from l in xmlDoc.Descendants("Category")
                          select new Notch
                          {
                              name = (string)l.Attribute("name").Value,
                              Titles = l.Element("Articles").Elements("article")
                                       .Select(s =&gt; s.Attribute("title").Value)
                                       .ToList(),
  
                              Images = l.Element("Articles").Elements("article")
                                       .Elements("thumb_image").Elements("image")
                                       .Select(x =&gt; x.Attribute("url").Value).ToList(),
  
                          };
  
                          foreach (var result in query)
                          {
                              Console.WriteLine(result.name);
                              foreach (var detail in result.Titles.Zip(result.Images, (st, si) =&gt; string.Format("{0} {1}", st, si)))
                              {
                                  Console.WriteLine(detail);
                              }
                          }
                          NotchsList11.ItemsSource= query;
  
          }
          catch(Exception e)
          {
              MessageBox.Show("Binding Failed");
          }
  
      } 
      private void NotchsList11_SelectionChanged(object sender, SelectionChangedEventArgs e)
     {
        Notch selectedItemData = (sender as ListBox).SelectedValue as Notch;
        if(selectedItemData != null)
         {
       NavigationService.Navigate(new Uri(string.Format("/Test.xaml?parameter",selectedItemData.articleid), UriKind.Relative));
         }
      }
  </code></pre>
  
  <p>My DetailPage.xaml.cs</p>
  
  <pre><code>protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
   {
       base.OnNavigatedTo(e);
       string parameter = this.NavigationContext.QueryString["parameter"];
    }
  </code></pre>
  
  <p>If i click any image,related title and fullcontent navigate to details page but fullcontent want to show webview on details page. so I tried this code but selectedItemData getting null value.i cant navigate to other page.So any one can help me to resolve in this problem?</p>