Question: i'm not able to display the images to another page. The images are taken from json. So i'm trying to pass the image url of the selected item of a listbox into a navigagtion query string.The variable i'm trying to pass the data is showing as null.Plese provide me with solution. Thanks

Here the code of the first page:

```
 private void ImageList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var lbi = (sender as ListBox).SelectedItem;

            if (e.AddedItems.Count > 0)

            {

                Uri targetPage = new Uri("/DisplayPhoto.xaml?selectedItem="+ lbi.ToString(),UriKind.RelativeOrAbsolute);

                NavigationService.Navigate(targetPage);

            }
            ((ListBox)sender).SelectedIndex = -1;
        }

```

Code of the second page:

```
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            string selectedIndex = "";
            if (NavigationContext.QueryString.TryGetValue("selectedItem", out    selectedIndex))
            {

                Uri uri = new Uri(selectedIndex, UriKind.Absolute);
                var img = new Image();
                img.Source = new BitmapImage(uri);
                img.Height = 400;
                img.Width = 400;
                listBox1.Items.Add(img);
            }
            base.OnNavigatedTo(e);

        }

```

Answer: 
You can use UIButton instead of UIImageView in tableview cell. Use following code for getting single and double tap.

```
//add target for your UITableViewCell's button

[aBtnThumbObj addTarget:self action:@selector(btnThumbClickDouble:) forControlEvents:UIControlEventTouchDownRepeat];

[aBtnThumbObj addTarget:self action:@selector(btnThumbClickSingle:) forControlEvents:UIControlEventTouchUpInside];

-(void)btnThumbClickSingle:(UIButton*)sender
{
    [self performSelector:@selector(singleTapOnButtonSelector:) withObject:sender afterDelay:0.2];
}
-(void)btnThumbClickDouble:(UIButton*)sender
{   
   [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(singleTapOnButtonSelector:) object:sender];
//Your implementation for double tap
}
-(void)singleTapOnButtonSelector:(UIButton*)sender
{
//Your implementation for single tap
}

```
You can set selection style for your cell as 

```
cell.selectionStyle = UITableViewCellSelectionStyleNone;

```

And then just don't implement your -tableViewDidSelectRowAtIndexPath method