How to set Dialog\'s position that came from .ShowDialog();
to show at the center of the mainWindows.
This is the way I try to set position.
For the child window, set at the XAML
WindowStartupLocation="CenterOwner"
To call your child window as a dialog and center of the parent, call it from the parent window, e.g
private void ConfigButton_OnClick(object sender, RoutedEventArgs e)
{
var window = new ConfigurationWindow
{
Owner = this
};
window.ShowDialog();
}