ImageViewer in WPF

1.3k views Asked by At

Hi everyone I would like to implement an ImageViewer (like the one in Facebook for example) in a WPF application

I already have a ListBox whith my pictures, it works well. But I would like to add pop "image full size" when the user double click on one of them. (something like in FB, with a fade out of the background etc). Currently I'm thinking of to use a Window...Do you have a better idea of what I should use ?

2

There are 2 answers

2
SvenG On BEST ANSWER

You could also use a Popup control.

It comes with some some built in (but very limited) animations, like fade, see PopupAnimation.

I'd try that and if it doesn't fit your needs, I second bflosabre91 oppionion and would use a separate opacity animated window.

But bear in mind that with an additional window you could have negative side effects e.g always sync the window positions correctly, handle task switches (ie. correctly hide the window in the taskbar/tasklist)

0
devman On

i would probably use a window for that as well. Then you can easily put an opacity animation when the window loads to give it the fade in and fade out effect