Click here to Skip to main content
15,880,392 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).
<HeatMapViewModel xmlns="clr-namespace:XAMLFinance.ViewModel">
  <HeatMapViewModel.Sectors>
    <SectorViewModel Name="Industrial" MarketCap="10000" ChangePercent="5">
      <SectorViewModel.Children>
        <InstrumentPriceViewModel
                          MarketCap="5000"
                          ChangePercent="4"
                          Symbol="XYZ"/>
        <InstrumentPriceViewModel
                         MarketCap="5800"
                         ChangePercent="0"
                         Symbol="ABC"/>
        <InstrumentPriceViewModel
                         MarketCap="2000"
                         ChangePercent="-4"
                         Symbol="123"/>
      </SectorViewModel.Children>
    </SectorViewModel>
    <SectorViewModel Name="Finance" MarketCap="5000" ChangePercent="6">
      <SectorViewModel.Children>
        <InstrumentPriceViewModel
                          MarketCap="5000"
                          ChangePercent="4"
                          Symbol="XYZ"/>
        <InstrumentPriceViewModel
                         MarketCap="5800"
                         ChangePercent="0"
                         Symbol="ABC"/>
        <InstrumentPriceViewModel
                         MarketCap="2000"
                         ChangePercent="-4"
                         Symbol="123"/>
      </SectorViewModel.Children>
    </SectorViewModel>
  </HeatMapViewModel.Sectors>
</HeatMapViewModel>

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