哪个 windows 应该显示在程序的 Windows 任务栏中?

Which windows should be shown in Windows taskbar for a program?

对此有任何指导方针吗? WPF windows 默认显示在任务栏中。您必须明确设置它们不会显示在那里

ShowInTaskbar = False

不过好像很多微软程序的任务栏好像只有mainwindow。

请参考MSDN

Make the following window types appear on the taskbar (for Windows 7, by using a taskbar button thumbnail):

  • 主要 windows(包括没有所有者的对话框)
  • 属性张
  • 无模式进度对话框
  • 奇才

For Windows 7, use taskbar button thumbnails to group the following window types with the primary window taskbar button it was launched from. Each program (specifically, each program perceived as a separate program) should have a single taskbar button.

  • 中学windows
  • 工作区选项卡
  • 项目windows
  • MDI child windows