title: How to get the listbox item's properties after event "tap"
body: <p>I have a custom listbox. Some of the collections's items have fields &quot;name&quot;, &quot;text&quot;, &quot;image&quot; and &quot;url&quot;. Other may have other fields (a use a template selector). So, if item has fields &quot;name&quot;, &quot;text&quot;, &quot;url&quot; and &quot;image&quot; - it shows in listbox as 2 textblocks and 1 image. When I tap on the image - program must open new window, open webBrowser and go to URL which is in the item's property &quot;url&quot;. I understand how to transmit info from one page to other, but I can't understand how to get the &quot;url&quot; from item. I tried</p>
  <pre><code>    private void Video_Tap(object sender, GestureEventArgs e) // event when tap on the image
      {
          New tmp = ((sender as ListBox).SelectedItem as New); // New - is the type of collection's item
          string vid = tmp.Video.url; // Video has fields &quot;image&quot; and &quot;url&quot;
  
          string destination = string.Format(&quot;/Video_Page.xaml?uri={0}&quot;, vid );
          NavigationService.Navigate(new Uri(destination, UriKind.Relative));
      }
  </code></pre>
  <p>but sender has an image type.</p>