summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrakeWPF/App.xaml.cs
blob: ae8d6a3570fde5bc1fc8cf4a885b32df820506a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*  App.xaml.cs $
    This file is part of the HandBrake source code.
    Homepage: <http://handbrake.fr>.
    It may be used under the terms of the GNU General Public License. */

namespace HandBrakeWPF
{
    using Caliburn.PresentationFramework.ApplicationModel;

    using HandBrakeWPF.ViewModels;

    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : CaliburnApplication
    {
        /*
         * TODO:
         * - Setup Castle Windsor support for services.
         * 
         * 
         */


        /// <summary>
        /// Initializes a new instance of the <see cref="App"/> class.
        /// </summary>
        public App()
        {
        }

        /// <summary>
        /// Create the Root View
        /// </summary>
        /// <returns>
        /// A MainViewMOdel
        /// </returns>
        protected override object CreateRootModel()
        {
            var binder = (DefaultBinder)Container.GetInstance<IBinder>();

            binder.EnableBindingConventions();
            binder.EnableMessageConventions();

            return new MainViewModel();
        }
    }
}