How to change the titile bar image (the top-left most icon) in WPF?
or in code
// Set an icon using code Uri iconUri = new Uri("pack://application:,,,/WPFIcon2.ico", UriKind.RelativeOrAbsolute); this.Icon = BitmapFrame.Create(iconUri);
Source: Window.Icon Property