Different RibbonWindow Icon

Ribbon for WPF Forum

Posted 7 years ago by Gergely Bacsó
Version: 17.2.0664
Avatar

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)

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

The latest build of this product (v24.1.3) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.