How to style Tabview with Tabviewitems and how to remove default Tooltip for TabViewitem? WinUI3

Sachi 221 Reputation points
2022-08-16T14:57:11.983+00:00

Hi
I am creating Winui3Application with Tabview control having 3 tabviewitems like header1,Header2,Header and i want to change the selected tabviewItemhedader background color i did not find any particular style for Tabview control
Any suggestion?

Thank in advance

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
794 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 85,806 Reputation points
    2022-08-16T16:39:52.577+00:00

    You can change the Resources.
    For example, in Red :

            <muxc:TabView.Resources>  
                <ResourceDictionary>  
                    <SolidColorBrush x:Key="TabViewItemHeaderBackgroundSelected" Color="Red"/>  
                </ResourceDictionary>  
            </muxc:TabView.Resources>  
    

    231702-tabviewitem-header.gif

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.