WPF app doesn't update taskbar icon
问题 I have this app that should update its taskbar icon at runtime. I'm trying to do this by changing app's main window icon, like this: var image = new WebClient().DownloadData("url_of_an_ico.ico"); this.Icon = App.Current.MainWindow.Icon = (BitmapSource)new ImageSourceConverter().ConvertFrom(image); Where this is the MainWindow . The code above is executed on a button click. It updates the Window icon (the one from the top left corner) but it doesn't update the taskbar icon. The strange part is