How do I put an Icon on a ToolWindow?

Docking/MDI for WPF Forum

Posted 4 years ago by Gareth Parris - Software Developer, McLaren
Version: 15.1.0622
Avatar

I'm struggling with getting an Icon to display on a ToolWindow.

I've set the ToolWindow ImageSource in my contructor but nothing appears. Is this possible?

I need to be able to do this programmatically and not in XAML.

Comments (1)

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

Hi Gareth,

The ToolWindow.ImageSource will generally only appear in certain UI places like on tabs and on the switcher, and it should work if set programmatically.  There also is a DockSite option for hiding the images on tabs, which the ToolWindowsHaveImagesOnTabs property.  Some themes like Metro themes set that to false by default, but you can force it to true to ensure the images always show on the tabs.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.