How to prevent WPF+win32 app taskbar icon from changing to Citrix default icon when run in Citrix? -


i have wpf application lots of native code , win32 windows. program's application's icon defined in vs2015 project ..\gui\rc\myapp.ico. when start program in xenapp citrix:

  1. splash appears
  2. wpf login window appears correct app icon in taskbar
  3. after login splash appears again , taskbar icon disappear
  4. next win32 window appears taskbar icon.
  5. while loading large amount of data, taskbar icon citrix-icon, when ready correct app icon switched back
  6. after closing win32 dialog mainwindow appears citrix-icon in taskbar.

the win32-dialog (steps 4-5) before mainwindow can skipped resulting mainwindow opened after splash citrix taskbar icon. steps above because while dialog loading taskbar icon citrix.

myapp.ico 160x160 pixels 32 bit depth.

when mainwindow created during initialization showintaskbar set false. when ready set true. done because want show other window(s) before mainwindow unfinished mainwindow somewhere outside screen(s) , don't want accessible taskbar.

edit: not happen if showintaskbar not set false.

not generic solution problem, seems proposed simple way solves particular issue op's code.

rather setting shownintaskbar property, enough set visibility property of main form visibility.hidden value.

as window ready, visibility property can set visibility.visible value causing window , task bar button displayed (with correct icons).


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -