microsoft/microsoft-ui-xaml

Control Styles should be named

Open

#3.735 aberto em 1 de dez. de 2020

Ver no GitHub
 (16 comments) (1 reaction) (1 assignee)C# (659 forks)batch import
area-Stylinghelp wantedteam-Controlswct

Métricas do repositório

Stars
 (5.815 stars)
Métricas de merge de PR
 (Mesclagem média 5d 15h) (9 fundiu PRs em 30d)

Description

While investigating this, I noticed an issue for this that is a complete show stopper: there is no way to override the default TabViewItem style. Unlike some other controls, the TabViewItem does not follow the pattern of:

<Style TargetType="ControlName" BasedOn="DefaultControlNameStyle"/>

<Style x:Key="DefaultControlNameStyle" TargetType="ControlName">
...
</Style>

but rather just exposes the complete template as the default style leaving users with no choice of easily overriding the default style. However that is something that we would need for this feature to be easily usable. @ranjeshj @stmoy @StephenLPeters Is that something we can change to make that customization easier?

@michael-hawker FYI

Originally posted by @chingucoding in https://github.com/microsoft/microsoft-ui-xaml/issues/2587#issuecomment-732463534

Guia do colaborador