Click here to Skip to main content
15,895,800 members
Articles / Web Development / ASP.NET

A Silverlight Expense Report Module using View Model (MVVM)

Rate me:
Please Sign up or sign in to vote.
4.82/5 (18 votes)
30 Aug 2010Ms-PL6 min read 64.9K   2.5K   58  
This module allows you to easily gather, and process Expense Reports, from users in your DotNetNuke portal
  • expense_reports.zip
  • expense_reportssilverlightsource.zip
    • App.xaml
    • App.xaml.cs
    • Assets
    • Bin
      • Debug
        • AppManifest.xaml
        • ar
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • bg
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • ca
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • cs
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • da
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • de
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
        • el
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • es
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
        • et
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • eu
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • ExpenseReports.dll
        • ExpenseReports.pdb
        • ExpenseReports.xap
        • ExpenseReportsTestPage.html
        • fi
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • fr
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
        • he
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • hr
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • hu
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • id
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • it
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
        • ja
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
        • ko
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
        • lt
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • lv
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • Microsoft.Expression.Interactions.dll
        • Microsoft.Expression.Interactions.xml
        • ms
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • nl
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • no
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • pl
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • pt
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • pt-BR
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • ro
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • ru
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
        • sk
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • sl
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • sr-Cyrl-CS
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • sr-Latn-CS
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • sv
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • System.ComponentModel.DataAnnotations.dll
        • System.ComponentModel.DataAnnotations.xml
        • System.Windows.Controls.Data.dll
        • System.Windows.Controls.Data.Input.dll
        • System.Windows.Controls.Data.Input.xml
        • System.Windows.Controls.Data.xml
        • System.Windows.Controls.DataVisualization.Toolkit.dll
        • System.Windows.Controls.DataVisualization.Toolkit.pdb
        • System.Windows.Controls.DataVisualization.Toolkit.xml
        • System.Windows.Controls.dll
        • System.Windows.Controls.Input.dll
        • System.Windows.Controls.Input.xml
        • System.Windows.Controls.Toolkit.dll
        • System.Windows.Controls.Toolkit.Internals.dll
        • System.Windows.Controls.Toolkit.pdb
        • System.Windows.Controls.Toolkit.xml
        • System.Windows.Controls.xml
        • System.Windows.Data.dll
        • System.Windows.Data.xml
        • System.Windows.Interactivity.dll
        • System.Windows.Interactivity.xml
        • th
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • tr
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • uk
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • vi
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
        • zh-Hans
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
        • zh-Hant
          • System.ComponentModel.DataAnnotations.resources.dll
          • System.Windows.Controls.Data.Input.resources.dll
          • System.Windows.Controls.Data.resources.dll
          • System.Windows.Controls.Input.resources.dll
          • System.Windows.Controls.resources.dll
          • System.Windows.Data.resources.dll
      • Release
    • Classes
    • DataStore
    • ExpenseReports.csproj
    • ExpenseReports.csproj.user
    • Models
    • obj
    • Properties
    • SampleData
    • Service References
      • wsExpenseReports
        • configuration.svcinfo
        • configuration91.svcinfo
        • ExpenseReports.wsExpenseReports.DeleteReportDetailResponse.datasource
        • ExpenseReports.wsExpenseReports.DeleteReportResponse.datasource
        • ExpenseReports.wsExpenseReports.GetReportDetailsResponse.datasource
        • ExpenseReports.wsExpenseReports.GetReportResponse.datasource
        • ExpenseReports.wsExpenseReports.GetReportsResponse.datasource
        • ExpenseReports.wsExpenseReports.InsertReportDetailResponse.datasource
        • ExpenseReports.wsExpenseReports.InsertReportResponse.datasource
        • ExpenseReports.wsExpenseReports.UpdateReportResponse.datasource
        • Reference.cs
        • Reference.svcmap
        • WebService.disco
        • WebService.wsdl
    • ServiceReferences.ClientConfig
    • ViewModels
    • Views
#pragma checksum "C:\Users\Michael\Documents\Visual Studio 2010\Projects\ExpenseReports\ExpenseReports\Views\Views\PrintTemplate.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "3A26DDE5E84E8180A35FDB996DE0308E"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Automation.Peers;
using System.Windows.Automation.Provider;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Resources;
using System.Windows.Shapes;
using System.Windows.Threading;


namespace ExpenseReports {
    
    
    public partial class PrintTemplate : System.Windows.Controls.UserControl {
        
        internal System.Windows.Controls.Grid LayoutRoot;
        
        private bool _contentLoaded;
        
        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void InitializeComponent() {
            if (_contentLoaded) {
                return;
            }
            _contentLoaded = true;
            System.Windows.Application.LoadComponent(this, new System.Uri("/ExpenseReports;component/Views/Views/PrintTemplate.xaml", System.UriKind.Relative));
            this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Software Developer (Senior) http://ADefWebserver.com
United States United States
Michael Washington is a Microsoft MVP. He is a ASP.NET and
C# programmer.
He is the founder of
AiHelpWebsite.com,
LightSwitchHelpWebsite.com, and
HoloLensHelpWebsite.com.

He has a son, Zachary and resides in Los Angeles with his wife Valerie.

He is the Author of:

Comments and Discussions