public Settings(Sidebar sidebar) { InitializeComponent(); DataContext = Model = new SettingsModel(sidebar); Owner = sidebar; ShowDialog(); }