This is a migrated thread and some comments may be shown as answers.

Replace the [+]-button in TabbedWindow

2 Answers 73 Views
TabbedWindow
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Veteran
Robert asked on 29 May 2020, 12:56 PM

Is there anyway to replace the [+]-button in TabbedWindow-control, through AdditionalTemplate or similar. I would like to replace it with 

a splitbutton or dropdown menu.

 

(if the answer involves this article https://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-editing-control-templates, 

please be specific to what file Im supposed to change in, Im new to Telerik)

 

Thanks in advance

 

 

2 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
Veteran
answered on 03 Jun 2020, 07:07 AM

I used Telerik.Windows.Controls.Navigation.xaml, copied the control template part and modified it in my own styles.

It works, but kind of messy

 

I still wonder if you could create some sort of stylewith a button and a dropwown and specify that as the "AddButtonStyle" of the TabbedWindow

0
Martin Ivanov
Telerik team
answered on 03 Jun 2020, 12:18 PM

Hеllo Robert,

There is no built-in API that allows changing the close (x) button of RadTabbedWindow. In order to achieve this, you will need to extract and modify the ControlTemplate of RadTabbedWindow as you already mentioned. More specifically, you can find the AdditionalContent property of the TabbedWindowTabControl in the template and replace its contents. The AdditionalContent contains a panel with few buttons (close, minimize, maximize, restore). You can add your custom button there. Then apply the modified ControlTemplate by setting the Template property of RadTabbedWindow.  

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
TabbedWindow
Asked by
Robert
Top achievements
Rank 1
Veteran
Answers by
Robert
Top achievements
Rank 1
Veteran
Martin Ivanov
Telerik team
Share this question
or