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

”SystemBackdropsSample1“punctuation error #1041

Closed
MrJone2457 opened this issue Jul 3, 2022 · 2 comments · Fixed by #1042
Closed

”SystemBackdropsSample1“punctuation error #1041

MrJone2457 opened this issue Jul 3, 2022 · 2 comments · Fixed by #1042
Labels
bug Something isn't working

Comments

@MrJone2457
Copy link

Which version of the app?

WinUI 3 Gallery

Description

private void SetConfigurationSourceTheme();
{
    switch (((FrameworkElement)this.Content).ActualTheme)
    {
        case ElementTheme.Dark:    m_configurationSource.Theme = Microsoft.UI.Composition.SystemBackdrops.SystemBackdropTheme.Dark; break;
        case ElementTheme.Light:   m_configurationSource.Theme = Microsoft.UI.Composition.SystemBackdrops.SystemBackdropTheme.Light; break;
        case ElementTheme.Default: m_configurationSource.Theme = Microsoft.UI.Composition.SystemBackdrops.SystemBackdropTheme.Default; break;
    }
}

private void SetConfigurationSourceTheme()
There should be no ";" after this statement.

Screenshots

image

Windows version

Windows 11 21H2 (22000)

Additional context

No response

@MrJone2457 MrJone2457 added the bug Something isn't working label Jul 3, 2022
@marcelwgn
Copy link
Collaborator

Thank you for filing this issue @MrJone2457! Would you like to create a PR for this? The file you need to modify would be the this one.

@MrJone2457
Copy link
Author

Thank you for filing this issue @MrJone2457! Would you like to create a PR for this? The file you need to modify would be the this one.

sorry i don't know how to do this yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants