Describe
If DialogHost control inside of a ViewBox control and if after running the app resize window along two axes(x,y), then popup will spawn in the wrong place (not in a center of the parent conrol). By default, without resizing popup spawns in center of the parent conrol.
Perhaps this behavior is correct?
Expected behavior
After resizing the window, popup will spawns in the center of a parent conrol.
Details
If you override the OverlayLayer control (add HorizontalAlignment=Center, VerticalAlignment=Center, as showed below, then problem is solved:
Describe If DialogHost control inside of a ViewBox control and if after running the app resize window along two axes(x,y), then popup will spawn in the wrong place (not in a center of the parent conrol). By default, without resizing popup spawns in center of the parent conrol.
Perhaps this behavior is correct?
Expected behavior After resizing the window, popup will spawns in the center of a parent conrol.
Details
If you override the OverlayLayer control (add HorizontalAlignment=Center, VerticalAlignment=Center, as showed below, then problem is solved:
Repro https://github.com/SergeyV17/DialogHostViewBoxIssueRepro