如何处理其他窗口程序调用的窗口? [英] how to handle a window called by other window program?
问题描述
亲爱的所有人.
我正在编写一些处理窗口的程序.
有WPF制作的主程序.当用户单击主窗口程序中菜单上的某个项目时,主程序将执行其他窗口处理.
另一个窗口将显示在主程序窗口的最顶部.
,但是当我单击Windows任务栏上的另一个程序时.
另一个窗口将始终显示在另一个程序上.
我如何才能始终处理另一个窗口在主窗口程序中显示.
其他程序将由主窗口程序控制.
我的窗口如下所示
- ------------------------------------------------
菜单项
-------------------------------------------------- ----
|
|
其他窗口的WPF做|
|
|
------------ --------------------------------------
Windows任务栏
- -------------------------------------------------
Dear All.
i am making some of program to handle a window.
there is a main program made by WPF. the main program will execute other window process , when user click a item on menu from the main window program.
The other window will be showed with topmost inside the Main Program window.
but when i click another program on windows task bar.
The other window will always be showed over another program.
how can i handle the other window to be always showed inside the main window program.
the other program will be controled by the main window program.
My windows look like below
--------------------------------------------------
Menu item |
--------------------------------------------------
|
|
Other window made by wpf |
|
|
--------------------------------------------------
windows task bar
--------------------------------------------------
推荐答案
Try setting the WindowStyle of the window to ToolWindow instead of using the TopMost property.
这篇关于如何处理其他窗口程序调用的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!