-
Notifications
You must be signed in to change notification settings - Fork 672
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
Button does not spread in RelativePanel #9617
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you! Open similar issues:
Closed similar issues:
|
Hi, AI. |
I suspect this is due to the behavior certain controls choose. Button will stretch if <RelativePanel Background="Aquamarine">
<Button Content="Button" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True"
RelativePanel.AlignTopWithPanel="True" RelativePanel.AlignBottomWithPanel="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
</RelativePanel> But RelativeLayout owners will need to confirm if that is required or if there is a bug here. |
Button's default style sets the HorizontalAlignment to left. So it's the same in a |
Thank you very much! |
Describe the bug
Place the Button in the RelativePanel,
does not cause the Button to extend to the left or right.
The same problem exists in the vertical direction.
Steps to reproduce the bug
Sample program in GitHub:
https://github.com/shinta0806/TestRelativePanel
Expected behavior
TextBox spreads in RelativePanel.
I would like the Button to behave the same as the TextBox.
Screenshots
[NG] Button
[NG] ComboBox
[OK] TextBox
NuGet package version
WinUI 3 - Windows App SDK 1.5.3: 1.5.240428000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: