public void Properties_Click(object sender, RoutedEventArgs args) { VehicleInformationPanelProperties propertiesWindow = new VehicleInformationPanelProperties(this); propertiesWindow.Owner = MainWindow.TopWindow; propertiesWindow.ShowDialog(); }