Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 WPF Photo Viewer Demo
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Windows Presentation Foundation Samples
WPF Photo Viewer Demo

This sample application demonstrates how to create a lightweight image viewing and editing tool using Windows Presentation Foundation (WPF). Image thumbnails are displayed in the preview pane, while metadata associated with an image is displayed within a panel to the right of the screen.

For comprehensive coverage of Windows Presentation Foundation (WPF) and Microsoft .NET Framework application development best practices, refer to the following as appropriate:

Accessibility - Accessibility Best Practices

Security - Windows Presentation Foundation Security

Localization - WPF Globalization and Localization Overview

Download sample

  • Install the Windows Software Development Kit (SDK) and open its build environment command window. On the Start menu, point to All Programs, Microsoft Windows SDK, and then click CMD Shell.

  • Download the sample, usually from the software development kit (SDK) documentation, to your hard disk drive.

  • To build the sample from the build environment command window, go to the source directory of the sample. At the command prompt, type MSBUILD.

  • To build the sample in Microsoft Visual Studio, load the sample solution or project file and then press CTRL+SHIFT+B.

  • To run the compiled sample from the build environment command window, execute the .exe file in the Bin\Debug or Bin\Release folder contained under the sample source code folder.

  • To run the compiled sample with debugging in Visual Studio, press F5.

Joint Photographics Experts Group (JPEG) images without a stored thumbnail will not show a preview in the viewing pane, but are editable by double-clicking. Likewise, images without stored BitmapMetadata will not display a time or date in the preview pane.

To open the edit pane, either right click an image and select "Edit", or simply double click the image.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
BlurBitmapEffect      Kitoooo   |   Edit   |  
You should remove(or at least decrease its Radius to 1 or 2) the BlurBitmapEffect in the PhotoView window because it hits performance while resizing.
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker