Hi 便携式家园,
Window.Topmost 属性指示该窗体是否应显示为最顶层窗体,即使它并不是活动的窗体。您可以使用此属性创建始终显示在应用程序中的窗口,例如查找和替换工具窗口。
Window.Owner
属性指示一个窗体属于另一个窗体,这个属性可以实现一个子窗体始终在另一个窗体的前面,可以实现随父窗体同时隐藏到任务栏并且同时从任务栏出现,当父窗体消失时,子窗体也会消失。
详情请参考MSDN文档对这两个属性的解释。
Best Regards,
Yohann Lu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.