Dialog positioning using ShowDialog

Topics: UI Architecture
Dec 16, 2013 at 3:03 PM
If I use the following with ShowPopup, the created Popup will be correctly positioned relative to my main window:
dynamic settings = new ExpandoObject();
settings.Placement = PlacementMode.Relative;
settings.PlacementTarget = GetView();
settings.HorizontalOffset = 165;
settings.VerticalOffset = 70;
windowManager.ShowPopup(viewModel, null, settings);
The same does not work for ShowDialog though, is this to be expected?
Dec 16, 2013 at 7:14 PM
This depends on the view class.
ShowDialog() shows a Window that has different properties to set.