/* 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; using Caliburn.PresentationFramework.ApplicationModel; using HandBrakeWPF.Services; 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 Container.GetInstance(); } protected override void ConfigurePresentationFramework(PresentationFrameworkModule module) { module.UsingWindowManager(); } } }