diff options
Diffstat (limited to 'win/C#/HandBrakeWPF/App.xaml.cs')
-rw-r--r-- | win/C#/HandBrakeWPF/App.xaml.cs | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/win/C#/HandBrakeWPF/App.xaml.cs b/win/C#/HandBrakeWPF/App.xaml.cs new file mode 100644 index 000000000..ae8d6a357 --- /dev/null +++ b/win/C#/HandBrakeWPF/App.xaml.cs @@ -0,0 +1,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();
+ }
+ }
+}
|