Click here to Skip to main content
15,892,298 members
Articles / Programming Languages / XML

Implementing MVVM Light with Structure Map

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
9 Dec 2011CPOL3 min read 34.8K   763   6  
This article is about implementing an MVVM Light based solution with an IoC container other than the built-in SimpleIoC container included in the MVVM Light framework.
using System.Windows;
using DemoStructureMap.ViewModel;

namespace DemoStructureMap
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        /// <summary>
        /// Initializes a new instance of the MainWindow class.
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
            Closing += (s, e) => SMViewModelLocator.Cleanup();
        }
    }
}

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

Comments and Discussions