public MainWindow() { this.InitializeComponent(); this.viewService = App.Services.Get <ViewService>(); this.viewService.ShowingDrawer += this.OnShowDrawer; ISelectionService selection = App.Services.Get <ISelectionService>(); selection.ActorSelected += this.OnActorSelected; ////this.IconArea.DataContext = this; this.Zodiark = App.Settings.ThemeDark; this.Opacity = App.Settings.Opacity; this.AlwaysOnTopToggle.IsChecked = App.Settings.AlwaysOnTop; this.WindowScale.ScaleX = App.Settings.Scale; this.WindowScale.ScaleY = App.Settings.Scale; App.Settings.Changed += this.OnSettingsChanged; this.Tabs.DataContext = this; selection.SelectDefault(); }