ExpenseIt Demo

This sample application is often used in talks and laboratory exercises to introduce the core Windows Presentation Foundation (WPF) technologies to developers. It demonstrates XBAPs, Navigation, Layout, Data Binding, Controls, and Styles.

Download sample

Permissions Required

This is a XBAP application and runs with partial trust, specifically with the following permissions:

Permission Description

SecurityPermission

for permission for the application to execute.

Associated enumeration: Execution

MediaPermission

for permission to load and use media.

(Included when built)

Associated enumerations: SafeAudio

SafeVideo

SafeImage

WebBrowserPermission

for permission enable navigation to HTML.

(Included when built)

Associated enumeration: Safe

Best Practices

This application conforms to Windows Presentation Foundation (WPF) and Microsoft .NET Framework application development best practices. Refer to the following for more information:

Accessibility - Accessibility Best Practices

Security - Windows Presentation Foundation Security

Localization - WPF Globalization and Localization Overview

Building the 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 2005, load the sample solution or project file and then press CTRL+SHIFT+B.

Running the Sample

  • 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 2005, press F5.

See Also