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
6 namespace HandBrakeWPF
\r
8 using Caliburn.PresentationFramework;
\r
9 using Caliburn.PresentationFramework.ApplicationModel;
\r
11 using HandBrakeWPF.Services;
\r
12 using HandBrakeWPF.ViewModels;
\r
15 /// Interaction logic for App.xaml
\r
17 public partial class App : CaliburnApplication
\r
21 * - Setup Castle Windsor support for services.
\r
28 /// Initializes a new instance of the <see cref="App"/> class.
\r
35 /// Create the Root View
\r
40 protected override object CreateRootModel()
\r
42 var binder = (DefaultBinder)Container.GetInstance<DefaultBinder>();
\r
44 binder.EnableBindingConventions();
\r
45 binder.EnableMessageConventions();
\r
47 return Container.GetInstance<MainViewModel>();
\r
51 protected override void ConfigurePresentationFramework(PresentationFrameworkModule module)
\r
53 module.UsingWindowManager<WindowManager>();
\r