How to customize TabView in WinUI3
C CB
170
Reputation points
How to customize TabView in WinUI3 as follows:
- Set the header of the selected tab to bold font and red background, and the header of the unselected tab to yellow background.
- Leave some space between each tab header.
- Add a red dividing line between the head of the tab and the content area below, with the width of the line equal to the width of the entire TabView.
- Add a red rectangular box to the outermost layer of each tab's content area, so that the content is displayed within the rectangular box.
To my knowledge, implementing these may require modifying the control template, but I am not familiar with it. I hope those who know can provide a complete XAML example.
Furthermore, how to achieve the following functions:
How to make the display text of the tab header editable after clicking, and cannot input or paste certain special characters such as slashes during editing, losing focus or completing editing after entering, just like changing the name of a Windows file/folder.
Sign in to answer