Click here to Skip to main content
15,896,201 members
Articles / Desktop Programming / WPF

Enhanced MVVM Design with Type-Safe View Models (TVM)

Rate me:
Please Sign up or sign in to vote.
4.68/5 (8 votes)
20 Sep 2012CPOL6 min read 39.2K   304   31  
Develop your applications quicker and make them more robust with typesafe binding.
// Copyright © 2012 by blueshell Software Engineering Harry von Borstel (http://www.blueshell.com)
// This work is licensed under COPL (see http://www.codeproject.com/info/cpol10.aspx)
// 
// 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MyTVMApp
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			InitializeComponent();
		}

		private void SelectionButton_Click(object sender, RoutedEventArgs e)
		{
			new SelectionsWindow().Show();
		}

		private void SimpleControlsButton_Click(object sender, RoutedEventArgs e)
		{
			new SimpleControlsWindow().Show();
		}

		private void HierarchyButton_Click(object sender, RoutedEventArgs e)
		{
			new HierarchyWindow().Show();
		}

		private void NumbersButton_Click(object sender, RoutedEventArgs e)
		{
			new NumbersWindow().Show();
		}
	}
}

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
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions