Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Child Window - Windows 7 Taskbar

We have a main application that loads several plugins that have their own individual icons and child windows.

Problem is in Windows 7, the icon in the taskbar is always the icon of the main application, even on the child windows. However, the Alt+Tab menu displays the appropriate icon.

I understand this is due to the pinning feature, and Windows 7 probably uses the icon of the main exe to handle this.

Is there a way we can change the taskbar icon on our child windows? And possibly disabled pinning as well? It would be confusing to be able to pin these child windows, as it wouldn't work properly.

like image 791
jonathanpeppers Avatar asked Jul 29 '26 04:07

jonathanpeppers


1 Answers

You can't pin a child window - pinning works at the level of the application. If you pin/unpin a child window, you're (un)pinning the app as a whole. There's no way to disable this behaviour, since it's OS-level functionality that applies to any window in the taskbar (though you could choose not to display those windows in the taskbar).

I'm not sure about the Window icons, but I'd imagine you're right when you say it's just using the application icon.

like image 177
Dan Puzey Avatar answered Jul 31 '26 18:07

Dan Puzey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!