Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabViewItemHeaderBackground is broken on scale factors > 100% #6384

Closed
1 of 2 tasks
WelterDevelopment opened this issue Nov 25, 2021 · 1 comment
Closed
1 of 2 tasks

Comments

@WelterDevelopment
Copy link

Describe the bug

On Windows 11 and with a WinAppSDK 1.0 WAP project, the standard TabViewItemHeaderBackground at display scale factors > 100% seems to be replaced by an ugly LinearGradientBrush.

Steps to reproduce the bug

  • Create a WinAppSDK 1.0 packaged (WAP) desktop app
  • Replace the Stackpanel of MainWindow.xaml with:
<Grid Background="DarkGray">
    <TabView HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
        <TabView.TabItems>
            <TabViewItem Header="Some TabItem">
                <Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
            </TabViewItem>
            <TabViewItem Header="Some other TabItem">
            </TabViewItem>
        </TabView.TabItems>
    </TabView>
</Grid>
  • Deploy and start the App with the display scale factor 125% (or anything other than 100%):

Screenshot 2021-11-25 183751
:

Expected behavior

  • All Brushes should look the same at any scale factor. However, at scale factors > 100%, the standard TabViewItemHeaderBackground seems to be replaced with a LinearGradientBrush
  • At 100%, the app looks as expected:

Screenshot 2021-11-25 183814

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.0 (If you're seeing your issue in older previews of WinUI 3, please try this release)

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Insider Build (xxxxx)

Additional context

Tested on Windows 11 10.0.22000 and on the latest insider build.

Is this issue related to microsoft-ui-xaml or to WindowsAppSDK?

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Nov 25, 2021
@WelterDevelopment
Copy link
Author

I Just saw that this is basically a dublicate of #6194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant