多个窗口,还有任务栏上的多个项目 [英] Multiple windows, but also multiple items on the task bar

查看:28
本文介绍了多个窗口,还有任务栏上的多个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置一个具有三个不同窗口的程序.我只是在用..

I'm setting up a program that has three different windows. I'm just using ..

Window1 win1 = new Window1();win1.show();

Window1 win1 = new Window1(); win1.show();

...对于每个额外的窗口.问题是每个窗口都会在任务栏上打开一个新选项卡.无论如何,我的三个窗口仍然可以在任务栏上只有一个相关项目吗?

...for each of the extra windows. The problem is that each window opens up a new tab on the taskbar. Is there anyway that I can still have my three windows with only one related item on the taskbar?

如果可能的话,我不想让它们成为所有子形式,而不得不坐在另一个盒子里.

If possible, I would not like to make them all child forms and have to sit inside of another box.

谢谢

推荐答案

将 ShowInTaskbar 设置为 false

Set the ShowInTaskbar to false

<Window ShowInTaskbar="False" ... />

如果你想让窗口关联在一起,比如当你点击其中一个时,它会带来所有的窗口,在显示窗口之前设置所有者(假设 this 是你的主窗口)

If you want to make the windows related together, like when you click one of them it brings them all, set the Owner before showing the window (assuming this is your main window)

Window1 w = new Window1();
w.Owner = this;

这篇关于多个窗口,还有任务栏上的多个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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