diff options
Diffstat (limited to 'win/C#/HandBrakeWPF/App.xaml.cs')
-rw-r--r-- | win/C#/HandBrakeWPF/App.xaml.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/win/C#/HandBrakeWPF/App.xaml.cs b/win/C#/HandBrakeWPF/App.xaml.cs index ae8d6a357..c0ed622a4 100644 --- a/win/C#/HandBrakeWPF/App.xaml.cs +++ b/win/C#/HandBrakeWPF/App.xaml.cs @@ -5,8 +5,10 @@ namespace HandBrakeWPF
{
+ using Caliburn.PresentationFramework;
using Caliburn.PresentationFramework.ApplicationModel;
+ using HandBrakeWPF.Services;
using HandBrakeWPF.ViewModels;
/// <summary>
@@ -37,12 +39,18 @@ namespace HandBrakeWPF /// </returns>
protected override object CreateRootModel()
{
- var binder = (DefaultBinder)Container.GetInstance<IBinder>();
+ var binder = (DefaultBinder)Container.GetInstance<DefaultBinder>();
binder.EnableBindingConventions();
binder.EnableMessageConventions();
- return new MainViewModel();
+ return Container.GetInstance<MainViewModel>();
+ }
+
+
+ protected override void ConfigurePresentationFramework(PresentationFrameworkModule module)
+ {
+ module.UsingWindowManager<WindowManager>();
}
}
}
|