TitleBarButton and applying images

Docking/MDI for WPF Forum

Posted 13 years ago by Bret Naughton
Version: 11.1.0542
I am probably missing something here, but I have created my own header (grid) for my application toolwindows. At some stage in the next few days I am going to populate my header with some customized buttons and I am now looking at the TitleBarButton functionality.

What I don't see from a programming point of view (and I have looked at the buttons on tab example) is how to add images to the button. I think you mentioned before there is no example in code, but if you do have a snippet on how to create a titlebarbutton in code would be grateful.


Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Bret,

The TitleBarButton is just a Button with a custom Style. So creating a TitleBarButton in code-behind is the exact same as with a Button, or any ContentControl. So something like this would work:
button.Content = new Image() { Source = ... };

Actipro Software Support

The latest build of this product (v24.1.2) 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.