private void Reward_Menu_Detail_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (e.OriginalSource is Image)
     {
         page.Storyboard2.Begin();
         page.rb_Reward.IsChecked = true;
         Image image = e.OriginalSource as Image;
         //RewardModel model = image.DataContext as RewardModel;
         //Image pin = new Image() { Source = new BitmapImage(new Uri("/Image_Recycle/bubble.png", UriKind.Relative)) };
         //pin.Width = 40;
         //pin.Height = 40;
         //pin.Tag = model.Id;
         //pin.DataContext = model;
         //page.layer.AddChild(pin, new GeoCoordinate(model.Latitude, model.Longitude));
         RewardModel   reward = image.DataContext as RewardModel;
         Reward_Menu_1 menu   = new Reward_Menu_1();
         menu.tbk_UserName.Text = reward.StoreName;
         menu.tbk_Phone.Text    = reward.Phone;
         menu.tbk_Address.Text  = reward.Address;
         menu.tbk_Describe.Text = reward.Describe;
         menu.Width             = 350;
         menu.Height            = 250;
         page.layer.AddChild(menu, new GeoCoordinate(reward.Latitude, reward.Longitude));
         page.map.SetView(new GeoCoordinate(reward.Latitude, reward.Longitude), 16);
     }
 }
 private void Reward_Menu_Detail_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (e.OriginalSource is Image)
     {
         page.Storyboard2.Begin();
         page.rb_Reward.IsChecked = true;
         Image image = e.OriginalSource as Image;
         //RewardModel model = image.DataContext as RewardModel;
         //Image pin = new Image() { Source = new BitmapImage(new Uri("/Image_Recycle/bubble.png", UriKind.Relative)) };
         //pin.Width = 40;
         //pin.Height = 40;
         //pin.Tag = model.Id;
         //pin.DataContext = model;
         //page.layer.AddChild(pin, new GeoCoordinate(model.Latitude, model.Longitude));
         RewardModel reward = image.DataContext as RewardModel;
             Reward_Menu_1 menu = new Reward_Menu_1();
             menu.tbk_UserName.Text = reward.StoreName;
             menu.tbk_Phone.Text = reward.Phone;
             menu.tbk_Address.Text = reward.Address;
             menu.tbk_Describe.Text = reward.Describe;
             menu.Width = 350;
             menu.Height = 250;
             page.layer.AddChild(menu, new GeoCoordinate(reward.Latitude, reward.Longitude));
             page.map.SetView(new GeoCoordinate(reward.Latitude, reward.Longitude), 16);
        
     }
 }
 void pin_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Image pin = sender as Image;
     if (pin.DataContext is AcquirerModel)
     {
         AcquirerModel acquirer = pin.DataContext as AcquirerModel;
         Recycle_Menu_1 menu = new Recycle_Menu_1();
         menu.tbl_BinName.Text = acquirer.BinName;
         menu.tbk_UserName.Text = acquirer.AcquirerName;
         menu.tbk_Phone.Text = acquirer.Phone;
         menu.tbk_Address.Text = acquirer.Address;
         menu.Tag = acquirer.Id;
         menu.Width = 300;
         menu.Height = 250;
         layer.AddChild(menu, new GeoCoordinate(acquirer.Latitude, acquirer.Longitude));
     }
     else
     {
         RewardModel reward = pin.DataContext as RewardModel;
         Reward_Menu_1 menu = new Reward_Menu_1();
         menu.tbk_UserName.Text = reward.StoreName;
         menu.tbk_Phone.Text = reward.Phone;
         menu.tbk_Address.Text = reward.Address;
         menu.tbk_Describe.Text = reward.Describe;
         menu.image_Item.Source = new BitmapImage(new Uri(reward.AvatarUri, UriKind.Relative));
         menu.Width = 350;
         menu.Height = 250;
         layer.AddChild(menu, new GeoCoordinate(reward.Latitude, reward.Longitude));
     }
 }