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
I noticed that the SettingsExpander becomes square when expanded, even though I have set the CornerRadius to 8. I subscribed to the Expanded event and confirmed that the CornerRadius never changes, i.e., it always stays 8. However, the Expander becomes square. If I try to change the CornerRadius in the Expanded event handler, due to what might be a race condition, the changes are not applied. But if I apply the change with a delay of about 50 ms, the changes are applied, and the Expander remains rounded when expanded.
Steps to reproduce
1. Add a `SettingsExpander` to the layout.
2. Set the `CornerRadius` to 8 or any other value.
3. Run the application.
4. Notice that the `SettingsExpander` is rounded when collapsed.
5. Expand the `SettingsExpander`.
6. Notice that the `SettingsExpander` becomes square when expanded.
Expected behavior
A) There should be a way to customize the CornerRadius for both the collapsed and expanded states (e.g., CornerRadius="16 16 16 16" when collapsed, ExpandedCornerRadius="8 8 0 0" when expanded, but this would require a new property - ExpandedCornerRadius).
B) The Expander.CornerRadius should match the SettingsExpander.CornerRadius, applying a converter that only affects TopLeft and TopRight (i.e., setting BottomLeft and BottomRight to 0). As I understand, if the expansion happens downward, ExpandDown -> TopCornerRadiusFilterConverter should be applied, but something goes wrong, and Expander.CornerRadius is set to [0, 0, 0, 0].
Describe the bug
I noticed that the
SettingsExpander
becomes square when expanded, even though I have set theCornerRadius
to 8. I subscribed to theExpanded
event and confirmed that theCornerRadius
never changes, i.e., it always stays 8. However, theExpander
becomes square. If I try to change theCornerRadius
in theExpanded
event handler, due to what might be a race condition, the changes are not applied. But if I apply the change with a delay of about 50 ms, the changes are applied, and theExpander
remains rounded when expanded.Steps to reproduce
Expected behavior
A) There should be a way to customize the
CornerRadius
for both the collapsed and expanded states (e.g.,CornerRadius="16 16 16 16"
when collapsed,ExpandedCornerRadius="8 8 0 0"
when expanded, but this would require a new property -ExpandedCornerRadius
).B) The
Expander.CornerRadius
should match theSettingsExpander.CornerRadius
, applying a converter that only affectsTopLeft
andTopRight
(i.e., settingBottomLeft
andBottomRight
to 0). As I understand, if the expansion happens downward,ExpandDown -> TopCornerRadiusFilterConverter
should be applied, but something goes wrong, andExpander.CornerRadius
is set to[0, 0, 0, 0]
.Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022, Preview
Visual Studio Build Number
17.11.0 Preview 5.0
Device form factor
Desktop
Additional context
CommunityToolkit.WinUI.Controls.SettingsControls Version:
8.1.240821
Help us help you
No, I'm unable to contribute a solution.
The text was updated successfully, but these errors were encountered: