From 5daa72facc91fad3d43ae16d151d737eca3faadb Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 21 Jan 2011 21:51:39 +0000 Subject: 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 --- win/C#/HandBrakeWPF/App.xaml.cs | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 win/C#/HandBrakeWPF/App.xaml.cs (limited to 'win/C#/HandBrakeWPF/App.xaml.cs') 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: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrakeWPF +{ + using Caliburn.PresentationFramework.ApplicationModel; + + using HandBrakeWPF.ViewModels; + + /// + /// Interaction logic for App.xaml + /// + public partial class App : CaliburnApplication + { + /* + * TODO: + * - Setup Castle Windsor support for services. + * + * + */ + + + /// + /// Initializes a new instance of the class. + /// + public App() + { + } + + /// + /// Create the Root View + /// + /// + /// A MainViewMOdel + /// + protected override object CreateRootModel() + { + var binder = (DefaultBinder)Container.GetInstance(); + + binder.EnableBindingConventions(); + binder.EnableMessageConventions(); + + return new MainViewModel(); + } + } +} -- cgit v1.2.3