Is it possible to change an application icon directly from the program? it's a WPF windows application. I would like to let users change the application's icon from the program so next time they would see the previously selected icon in the launcher. I actually want the user can change the icon of the application. I write the below code in the formload event of the main form.
this.Icon = Properties.Resources.coins;
but it just changes the form's icon. But I wanna change the program icon. How could this be done? I'm developing on VS 2019/WPF/ C#.