OSDN Git Service

ae8d6a3570fde5bc1fc8cf4a885b32df820506a9
[handbrake-jp/handbrake-jp-git.git] / win / C# / HandBrakeWPF / App.xaml.cs
1 /*  App.xaml.cs $\r
2     This file is part of the HandBrake source code.\r
3     Homepage: <http://handbrake.fr>.\r
4     It may be used under the terms of the GNU General Public License. */\r
5 \r
6 namespace HandBrakeWPF\r
7 {\r
8     using Caliburn.PresentationFramework.ApplicationModel;\r
9 \r
10     using HandBrakeWPF.ViewModels;\r
11 \r
12     /// <summary>\r
13     /// Interaction logic for App.xaml\r
14     /// </summary>\r
15     public partial class App : CaliburnApplication\r
16     {\r
17         /*\r
18          * TODO:\r
19          * - Setup Castle Windsor support for services.\r
20          * \r
21          * \r
22          */\r
23 \r
24 \r
25         /// <summary>\r
26         /// Initializes a new instance of the <see cref="App"/> class.\r
27         /// </summary>\r
28         public App()\r
29         {\r
30         }\r
31 \r
32         /// <summary>\r
33         /// Create the Root View\r
34         /// </summary>\r
35         /// <returns>\r
36         /// A MainViewMOdel\r
37         /// </returns>\r
38         protected override object CreateRootModel()\r
39         {\r
40             var binder = (DefaultBinder)Container.GetInstance<IBinder>();\r
41 \r
42             binder.EnableBindingConventions();\r
43             binder.EnableMessageConventions();\r
44 \r
45             return new MainViewModel();\r
46         }\r
47     }\r
48 }\r