Right align last element on StackPanel
#10136
Answered
by
Lightczx
tom-huntington
asked this question in
Q&A
-
What do people do? Use a grid with
|
Beta Was this translation helpful? Give feedback.
Answered by
Lightczx
Feb 20, 2025
Replies: 1 comment 2 replies
-
You can always write a custom Panel to achieve this, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
StackPanel can't be inherited, you need to inherit from Panel and write all logic yourself.
That's a example write by our team
https://github.com/DGP-Studio/Snap.Hutao/blob/main//src/Snap.Hutao/Snap.Hutao/UI/Xaml/Control/Panel/EqualPanel.cs#L11