WPF App loses completely focus on window close

前端 未结 8 2231
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-12 20:40

Problem description

If I make a non-modal window as a child window through setting the Owner of the window to a parent window, and then show a Messa

8条回答
  •  遥遥无期
    2020-12-12 21:35

    Ownership has nothing to do with which window activation. To see this, change the owner of the second window to the top window and run the program. Notice that nothing changes. Ownership has to do with "If a window is minimized what other windows need to be minimized". So you are stuck with using custom activation code.

提交回复
热议问题