Click here to Skip to main content
15,881,793 members
Articles / Desktop Programming / WPF

Introducing Apex

Rate me:
Please Sign up or sign in to vote.
4.80/5 (23 votes)
2 Aug 2011CPOL10 min read 56.8K   1.5K   57  
Introducing Apex - a lightweight MVVM and utility library for WPF, Silverlight, and WP7.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace MVVMSample
{
  public partial class MainPage : PhoneApplicationPage
  {
    // Constructor
    public MainPage()
    {
      InitializeComponent();

      DataContext = viewModel;
    }

    private MainViewModel viewModel = new MainViewModel();

    private void Button_Click(object sender, RoutedEventArgs e)
    {
        viewModel.BuildNameCommand.DoExecute(null);
    }
  }
}

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
Software Developer
United Kingdom United Kingdom
Follow my blog at www.dwmkerr.com and find out about my charity at www.childrenshomesnepal.org.

Comments and Discussions