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.

C# (149.7 KB)
4,449 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Threading;

namespace ExpenseIt
    public partial class App : Application
        public App()
            this.DispatcherUnhandledException += App_DispatcherUnhandledException;

        void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
            // SECURITY
            // If executing at run time, do not display default exception dialog box:
            // The defualt dialog box displays application-specific information that
            // an attacker may be able to use.
            MessageBox.Show("An error occured.");
            e.Handled = true;