Click here to Skip to main content
Sign Up to vote bad
good
See more: C#4.0
Hi,
 
I have a datagrid in wpf in which I am displaying image in one of its column. My requirement is when you click on this image, it should be displayed by system default image viewer in enlarged mode. Suggest me how can I implement it?
Posted 10 Jan '13 - 0:26

Comments
willempipi - 10 Jan '13 - 6:31
Can't you just start the file like it's a executeble using the Process.Start function?
Sanchita Podder - 10 Jan '13 - 6:34
Did not get you. Please elaborate.For your information I am using MVVM and image I need to display is stored in datagrid column.
Sergey Alexandrovich Kryukov - 10 Jan '13 - 14:18
Why? —SA

1 solution

Why default viewer? You can easily implement viewing it inside your application, where you can have full control. For those who wants a different viewer, provide "Save". By the way, and external viewer (default or not) will require to have a file anyway, so you have nothing to loose. "Save" is very beneficial, because then the user decides where to put it, you won't need to mess with temporary file.
 
I'm pretty much sure you know how to make a viewer, as soon as you already can view the image in the grid view.
 
—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 223
1 Ron Beyer 220
2 Aarti Meswania 200
3 Mahesh Bailwal 175
4 Rohan Leuva 170
0 Sergey Alexandrovich Kryukov 8,553
1 OriginalGriff 6,899
2 CPallini 3,648
3 Rohan Leuva 2,963
4 Maciej Los 2,308


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid