-
Notifications
You must be signed in to change notification settings - Fork 707
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
Horizontal Alignments not work for Toggle Switch #6157
Comments
Worth noting that it actually does logically work, but there's a default minimum width specified for the control that makes it optically look like it's not: |
This is correct, although we should probably right align the content within that min width when the alignment is set to right... |
You can fix this today by overriding the min width resource, however then the control wouldn't meet the recommended touch target size. |
Setting ToggleSwitch MinWidth works for the simple sample , but in my project I have used the ToggleSwitch control inside content presenter in code behind, there I can't use the key ToggleSwitchThemeMinWidth.Now, I am trying to prepare the simple sample for this. I will update once I have completed. |
Is this issue resolved with above fix? |
A year from this issue was posted and no actual fix has been released (no workarounds) 😕 |
ToggleSwitchThemeMinWidth seems to be the issue. |
this is a dup of #3652 |
Describe the bug
Hi Team,
In WinUI-ToggleSwitch control, Horizontal alignment is not working properly.
Refer the below code and Image:
Steps to reproduce the bug
Declare the ToggleSwitch control in Grid layout.
Give the Horizontal Alignment as Right.
Note the control is not fully aligned in right side.
Expected behavior
Horizontal alignment should works properly for ToggleSwitch control.
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 0.8: 0.8.0 (If you're seeing your issue in older previews of WinUI 3, please try this release)
Windows app type
Device form factor
Desktop
Windows version
October 2020 Update (19042)
Additional context
Whether the Horizontal alignment value given or not by default the control is Aligned to left.
Please check and update on this.
The text was updated successfully, but these errors were encountered: