Different RibbonWindow Icon

Posted 11 months ago by Avatar Gergely Bacsó

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.)

Comments (1)

Posted 11 months ago by Actipro Software Support - Cleveland, OH, USA


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.

Actipro Software Support
Information The latest build of this product (2018.1 build 0674) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.