public void ShowPropertiesDialog() { var window = new PeerDeviceProperties(this); window.Owner = App.Current.MainWindow; window.ShowDialog(); }