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

Cannot customize Toggle Split Button disabled background colour the same way you can for other button type #4717

Open
johnt-star opened this issue Sep 14, 2024 · 0 comments

Comments

@johnt-star
Copy link

Describe the bug

When disabling Toggle Split Button, the disabled background color remains light gray, regardless of how it is customized in the dictionary.

All other buttons can have their disabled background color can be customized.

Steps to reproduce the bug

I am including an app that demonstrates the issue - see screenshots.

The app shows 3 controls with the left most button disabling/enabling the other 2 controls.

Clicking the "Click Me" button disables the other 2controls, and the Toggle Button is configured correctly while Toggle Split Button is not

Note that these are the custom dictionary entries for the 2 controls to set their Disabled Background Colors:

<!-- ToggleSplitButtonBackgroundDisabled Customizations -->
<SolidColorBrush x:Key="ToggleSplitButtonBackgroundDisabled" Color="LightBlue" />

Expected behavior

Toggle Split Button should be the configured disabled color when the Toggle Split Button is disabled.

Screenshots

Buttons enabled at start up:
image

Buttons disabled - Toggle Split Button is Light Gray instead of configured value
image

NuGet package version

Windows App SDK 1.6.0: 1.6.240829007

Packaging type

Packaged (MSIX)

Windows version

Windows 10 version 22H2 (19045, 2022 Update)

IDE

Visual Studio 2022

Additional context

Attaching sample project

ToggleButtonBackground.zip

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

No branches or pull requests

1 participant