How to set Dialog\'s position that came from .ShowDialog(); to show at the center of the mainWindows.
.ShowDialog();
This is the way I try to set position.
XAML: