WPF Picture Viewer Control

Something simple, something small but definitely something Useful.

A WPF Picture Viewer Control that can be use in both Windows Form and WPF App. 

You can download the source code here

When you want to use it in Windows Form, you need to have a ElementHost control to host the WPF control. Just like the screen capture show.  In order to pass in the Folder Path to the control you just need to do it in 1 line code.

CType(Me.ElementHost1.Child, PictureViewerControl.PictureViewer).FolderName = "c:\windows\web\wallpaper"

Feel free to try it out. Hope you enjoy the code.

Advertisements

4 Comments

Filed under Uncategorized

4 responses to “WPF Picture Viewer Control

  1. darren

    Cool little control, good job!

  2. Walter

    You are welcome, feel free to customize it.

  3. Ajay

    how can i download the code? whenever i clink on the link its asked me for the login credentials for gainsecure.net? Kindly help!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s