You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most controls can have their disabled background color statically set via a custom dictionary, by using an entry such as
( See #9989 where custom dictionary entry does not work )
My problem is that the user can change the background color of the container the control is on, so I need to dynamically change the Control's disabled background color.
Ideally, this could be done by exposing the controls disabled background color, the way it is currently done for background color.
In the meantime, in the following link, someone showed me how to access the elements of the Visual Tree for a check box
Could something like this be done for TextBox type controls (AutoSuggestBox, NumberBox, PasswordBox and TextBox) and the Button type controls (Button, HyperlinkButton, RadioButton, RadioButtons, RepeatButton, SplitButton, ToggleButton and ToggleSplitButton)?
Thank you in advance!
Steps to reproduce the bug
No control property to dynamically change the disabled back ground color.
Ideally the code would look similar to
private void SetButtonBackGroundDisabledColor(Windows.UI.Color color)
{
Button.DisabledBackground = new SolidColorBrush(color);
}
Can only do it statically in a custom dictionary by adding following line:
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007
Windows version
Windows 10 (21H2): Build 19044
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Not so much a bug as missing functionality.
Most controls can have their disabled background color statically set via a custom dictionary, by using an entry such as
( See #9989 where custom dictionary entry does not work )
My problem is that the user can change the background color of the container the control is on, so I need to dynamically change the Control's disabled background color.
Ideally, this could be done by exposing the controls disabled background color, the way it is currently done for background color.
In the meantime, in the following link, someone showed me how to access the elements of the Visual Tree for a check box
#9236
Could something like this be done for TextBox type controls (AutoSuggestBox, NumberBox, PasswordBox and TextBox) and the Button type controls (Button, HyperlinkButton, RadioButton, RadioButtons, RepeatButton, SplitButton, ToggleButton and ToggleSplitButton)?
Thank you in advance!
Steps to reproduce the bug
No control property to dynamically change the disabled back ground color.
Ideally the code would look similar to
Can only do it statically in a custom dictionary by adding following line:
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007
Windows version
Windows 10 (21H2): Build 19044
Additional context
No response
The text was updated successfully, but these errors were encountered: