Is it possible for a RibbonWindow to show an application icon different to what is shown in the taskbar?
(I want a vector metro icon in the window, and a nice, colorful icon in the taskbar.)
Is it possible for a RibbonWindow to show an application icon different to what is shown in the taskbar?
(I want a vector metro icon in the window, and a nice, colorful icon in the taskbar.)
Hello,
Yes, since our RibbonWindow uses a WindowChrome (one of our classes) to provide a custom user interface, you can set the window's icon to be different from the one that is normally set right on Window. To do that, you must do this kind of thing in code-behind, after the window has been created:
var chrome = WindowChrome.GetChrome(window);
chrome.IconSource = new BitmapImage(new Uri("/Resources/Images/Properties16.png", UriKind.Relative));
The icon normally set on Window will continue to be used in the taskbar.
Please log in to a validated account to post comments.