Thanks to Xaruth for pointing me in the right direction I found the answer. It seems widows uses an ApplicationID
to determine if a window should be grouped with another one.
If you download the Windows API Code Pack you can set the ApplicationID
of the window you want to appear as a separate taskbar icon.
Here's the code:
TaskbarManager.Instance.SetApplicationIdForSpecificWindow(
new WindowInteropHelper(wind).Handle, "Gx3OptimisationWindow");
Where wind is the window you want as a separate icon and GX3OptimisationWindow
is the new ApplicationID
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…