Exemple #1
0
 private void OnShowImageChildWindow(object sender, RoutedEventArgs e)
 {
     var view = new ImageWindow();
     view.setImage(@"http://192.168.10.12/tourism_trunk/AttachmentService/Files/131227/6b9a834c-112b-4a38-a5a7-8ad1269025fb.jpg");
     view.Show();
 }
Exemple #2
0
        void image_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            e.Handled = true;
            //e.set_Handled(true);
            Image image = sender as Image;
            BitmapImage image2 = image.Source as BitmapImage;
            if (this.window == null)
            {
                this.window = new ImageWindow();
            }
            this.window.setImage(image2.UriSource.AbsoluteUri);
            //this.window.setImage(image2.get_UriSource().get_AbsoluteUri());

            this.window.Show();
        }