如何处理其他窗口程序调用的窗口? [英] how to handle a window called by other window program?

查看:96
本文介绍了如何处理其他窗口程序调用的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人.

我正在编写一些处理窗口的程序.

有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
--------------------------------------------------

推荐答案

尝试将窗口的WindowStyle设置为

Try setting the WindowStyle of the window to ToolWindow instead of using the TopMost property.


这篇关于如何处理其他窗口程序调用的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆