private void CmdConf_OnClick(object sender, RoutedEventArgs e) { try { var conf = new Adjust() { ShowTitleBar = false, IsWindowDraggable = false, TitleCaps = false, GlowBrush = new SolidColorBrush(Colors.White) }; conf.ShowDialog(); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } }