-
Notifications
You must be signed in to change notification settings - Fork 678
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
SplitButton Background color not updating when IsEnabled is false #6011
Comments
We have SplitButtonDisabledBackground resources, but they are simply not used. The control doesn't have a disabled state that could use them at all... |
@StephenLPeters Is it correct to add the appropriate visual state then and set that resource? Mind if I work on that then? |
Update. I added the following resource to get disabled style. Background="{ThemeResource ButtonBackgroundDisabled}" |
@chingucoding I think so, we will want to test it pretty thoroughly though, the state manager seems complicated to me... |
🎉This issue was addressed in #6138, which has now been successfully released as Handy links: |
🎉This issue was addressed in #6138, which has now been successfully released as Handy links: |
🎉This issue was addressed in #6138, which has now been successfully released as Handy links: |
🎉This issue was addressed in #6138, which has now been successfully released as Handy links: |
Describe the bug
The SplitButton Background color does not update to disabled color as a standard Button background color will change when the button IsEnabled is false.
Steps to reproduce the bug
Add the xmlns:muxc="using:Microsoft.UI.Xaml.Controls" namespace to a XAML page.
Add a SplitButton to XAML page
<muxc:SplitButton Background="#FFEAEAE0" Content="I am a SplitButton" Foreground="Black" IsEnabled="False" Height="48" Width="177" />
Add a Button to XAML page
View the page in designer window or run the application.
Expected behavior
The SplitButton background color should be the same as the Button background color since IsEnabled for both are "False".
Screenshots
NuGet package version
No response
Windows app type
Device form factor
Desktop
Windows version
May 2020 Update (19041)
Additional context
No response
The text was updated successfully, but these errors were encountered: