WPF WindowStartupLocation=“CenterOwner” not really center, and pops all over, why?

后端 未结 5 590
陌清茗
陌清茗 2020-12-29 00:54

Well this question and this question are similar but no answers that work. In fact I was hoping WindowStartupLocation=CenterOwner would work...it doesn\'t. It seems to cent

5条回答
  •  Happy的楠姐
    2020-12-29 01:36

    I had the same problem...but it was mostly due to the fact that, when i wanted to get rid of the child window, I used hide() instead of close() ... so when you reopen it, because it was hidden and not closed, when the parent window is moved, it still opens at it's startup location...

    So when close the child window instead of hiding it for example when finished working with it.

提交回复
热议问题