Removing Icon from a WPF window

前端 未结 6 1778
执念已碎
执念已碎 2020-12-01 11:17

I am able to remove the window icon from WPF window using WinApi\'s, however I get the icon again in the application window when I run just the executable of the WPF project

6条回答
  •  [愿得一人]
    2020-12-01 11:35

    Create a transparent 1 by 1 icon and replace it with a standard one

    Icon = BitmapSource.Create(1, 1, 0, 0, PixelFormats.Bgra32, null, new byte[4], 4);
    

提交回复
热议问题