Click here to Skip to main content
11,415,390 members (77,694 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#4.0

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 1:26am
willempipi at 10-Jan-13 6:31am
Can't you just start the file like it's a executeble using the Process.Start function?
Sanchita Podder at 10-Jan-13 6:34am
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 at 10-Jan-13 14:18pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.


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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,270
1 OriginalGriff 7,512
2 Maciej Los 3,710
3 Abhinav S 3,325
4 Peter Leow 3,084

Advertise | Privacy | Mobile
Web04 | 2.8.150427.4 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100