summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrakeWPF/App.xaml.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-01-21 21:51:39 +0000
committersr55 <[email protected]>2011-01-21 21:51:39 +0000
commit5daa72facc91fad3d43ae16d151d737eca3faadb (patch)
treebc2c088b12aca3f634db88c11dff28a3eaf8b49e /win/C#/HandBrakeWPF/App.xaml.cs
parent0f591a4c954dde1ed4acd5f4baea3117e3c79e29 (diff)
WinGui:
- Add initial WPF project. (Uses MVVM, Caliburn 1.1) This may one day replace the WinForms code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3762 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrakeWPF/App.xaml.cs')
-rw-r--r--win/C#/HandBrakeWPF/App.xaml.cs48
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();
+ }
+ }
+}