Skip to content

How to base styles on WinUI 3 styles #17774

Closed Answered by kazo0
DavidM29 asked this question in Q&A
Discussion options

You must be logged in to vote

Seems like an issue with winui: microsoft/microsoft-ui-xaml#6528

The suggestion in that issue is to remove the BasedOn. Curious that it is required for non-Windows platforms.

For now, you can use platform conditionals and define this in your xaml

xmlns:not_win="http://uno.ui/not_win"
mc:Ignorable="not_win"

and use this for BasedOn:

not_win:BasedOn="{StaticResource DefaultExpanderStyle}"

I will create an issue in the Uno repo to investigate the need for the BasedOn in Uno platforms

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@DavidM29
Comment options

@kazo0
Comment options

@DavidM29
Comment options

@kazo0
Comment options

Comment options

You must be logged in to vote
4 replies
@kazo0
Comment options

Answer selected by kazo0
@kazo0
Comment options

@DavidM29
Comment options

@kazo0
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants