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

Change background color in TabbedWindow titlebar

1 Answer 91 Views
TabbedWindow
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Veteran
Robert asked on 20 Nov 2020, 06:45 AM

Hi Guys!

 

Title says it all, how to I change background color of the title bar. (see image)?

(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 should change in, Im new to Telerik)

 

Thanks in advance, Robert

1 Answer, 1 is accepted

Sort by
0
Vicky
Telerik team
answered on 23 Nov 2020, 02:22 PM

Hi Robert,

You can change the default background color of the TabbedWindow's header part by defining a Style, similar to the following one

<Style TargetType="tabbedWindow:TabbedWindowTabControl" BasedOn="{StaticResource TabbedWindowTabControlStyle}">
    <Setter Property="HeaderBackground" Value="LightGoldenrodYellow"/>
</Style>

where tabbedWindow is:

xmlns:tabbedWindow="clr-namespace:Telerik.Windows.Controls.TabbedWindow;assembly=Telerik.Windows.Controls.Navigation"

I've prepared a sample project for your convenience, demonstrating the suggested approach. The BasedOn is needed only if using a Telerik theme with the NoXAML version of the assemblies. The sample project has the Fluent theme applied and uses NoXAML.

Please, find the project attached to my reply, give it a try and let me know if it helped.

Regards,
Vicky
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TabbedWindow
Asked by
Robert
Top achievements
Rank 1
Veteran
Answers by
Vicky
Telerik team
Share this question
or