private void TestDeviceManagement_MenuItem_Click(object sender, RoutedEventArgs e) { var window = new DeviceManagement { Owner = this, ShowInTaskbar = false, WindowStartupLocation = WindowStartupLocation.CenterOwner }; window.ShowDialog(); }