1

At the moment my WPF app opens a new icon in the taskbar when a new window is opened like the default. However, I only want one window in the taskbar at anyone time.

Is there a property in the app.xaml that can do this? Or how can I this?

wonea
  • 4,783
  • 17
  • 86
  • 139
user3428422
  • 4,300
  • 12
  • 55
  • 119
  • Do you want to run several instances of your application or is this related to only one application with several windows? – Thomas Weller Jul 04 '14 at 11:54
  • Do you mean like IE does with tabs? Have the icons grouped by application? Because otherwise, how would people switch from one window to the other? – Gimly Jul 04 '14 at 11:55

1 Answers1

2

In all Windows that you don't want to show in taskbar use ShowInTaskbar="False"

Example:

<Window ShowInTaskbar="False">
    <!-- rest of code -->
</Window> 

If you want to have only one icon for many instances of the same application then i don't think if this is possible. You can open them inside your application as a new window and set ShowInTaskbar programically to achieve something similar.

Gempron
  • 74
  • 4