blob: c0ed622a4bc8de163cb249d55cebc1a3ab41500a (
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
49
50
51
52
53
54
55
56
|
/* 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;
using Caliburn.PresentationFramework.ApplicationModel;
using HandBrakeWPF.Services;
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<DefaultBinder>();
binder.EnableBindingConventions();
binder.EnableMessageConventions();
return Container.GetInstance<MainViewModel>();
}
protected override void ConfigurePresentationFramework(PresentationFrameworkModule module)
{
module.UsingWindowManager<WindowManager>();
}
}
}
|