Click here to Skip to main content
15,879,326 members
Articles / Mobile Apps / Windows Phone 7

XAMLFinance – A Cross-platform WPF, Silverlight & WP7 Application

Rate me:
Please Sign up or sign in to vote.
4.94/5 (99 votes)
21 Sep 2011CPOL27 min read 216.1K   9.9K   251  
This article describes the development of XAML Finance, a cross-platform application which works on the desktop, using Windows Presentation Foundation (WPF), on the web, using Silverlight and on Windows Phone 7 (WP7).
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using XAMLFinance.ViewModel.Command;

namespace XAMLFinance.ViewModel
{
  /// <summary>
  /// The top-level view model. This partial class is specialized for the WPF, Silverlight
  /// and WP7 versions of XAML Finance.
  /// </summary>
  public partial class XAMLFinanceViewModel : ViewModelBase
  {
    private PriceListViewModel _pricelist;

    private HeatMapViewModel _heatMap;

    /// <summary>
    /// Gets / sets the price list view model
    /// </summary>
    public PriceListViewModel Pricelist
    {
      get { return _pricelist; }
      set { _pricelist = value; }
    }

    /// <summary>
    /// Gets / sets the heatmap view model
    /// </summary>
    public HeatMapViewModel HeatMap
    {
      get { return _heatMap; }
      set { _heatMap = value; }
    }

    public XAMLFinanceViewModel()
    {
      _pricelist = new PriceListViewModel(this);
      _heatMap = new HeatMapViewModel(this);      
    }
        

  }
}

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 Code Project Open License (CPOL)


Written By
Architect Scott Logic
United Kingdom United Kingdom
I am CTO at ShinobiControls, a team of iOS developers who are carefully crafting iOS charts, grids and controls for making your applications awesome.

I am a Technical Architect for Visiblox which have developed the world's fastest WPF / Silverlight and WP7 charts.

I am also a Technical Evangelist at Scott Logic, a provider of bespoke financial software and consultancy for the retail and investment banking, stockbroking, asset management and hedge fund communities.

Visit my blog - Colin Eberhardt's Adventures in .NET.

Follow me on Twitter - @ColinEberhardt

-

Comments and Discussions