public App() { // ay 4.5.1 the textboxes stop to acepting , character // this fix it FrameworkCompatibilityPreferences.KeepTextBoxDisplaySynchronizedWithTextProperty = false; this.instanceMonitor = new ApplicationInstanceMonitor<string>(); this.DispatcherUnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(App_DispatcherUnhandledException); this.Startup += new StartupEventHandler(AppStartup); this.Exit += new ExitEventHandler(App_Exit); }
protected override void Configure() { try { _instanceMonitor = new ApplicationInstanceMonitor<ActivationDataMessage>(); _events = new EventAggregator(); _container = new CompositionContainer( new AggregateCatalog( // ReSharper disable once RedundantEnumerableCastCall AssemblySource.Instance.Select(x => new AssemblyCatalog(x)).OfType<ComposablePartCatalog>())); var batch = new CompositionBatch(); batch.AddExportedValue<IWindowManager>(new AppWindowManager()); batch.AddExportedValue(_events); batch.AddExportedValue(_container); _container.Compose(batch); } catch (Exception) { } }
protected override void Configure() { try { _instanceMonitor = new ApplicationInstanceMonitor <ActivationDataMessage>(); _events = new EventAggregator(); _container = new CompositionContainer( new AggregateCatalog( // ReSharper disable once RedundantEnumerableCastCall AssemblySource.Instance.Select(x => new AssemblyCatalog(x)).OfType <ComposablePartCatalog>())); var batch = new CompositionBatch(); batch.AddExportedValue <IWindowManager>(new AppWindowManager()); batch.AddExportedValue(_events); batch.AddExportedValue(_container); _container.Compose(batch); } catch (Exception) { } }