Is there a way to have a horizontal group of buttons that take up even amounts of space? #2057
Answered
by
cwensley
Shadowblitz16
asked this question in
Q&A
-
Is there a way to have a horizontal group of buttons that take up even amounts of space? kinda like this...
I tried using stack panel layout panel and dynamic panel but I can't figure out how to get it to outsize.
|
Beta Was this translation helpful? Give feedback.
Answered by
cwensley
Nov 16, 2021
Replies: 1 comment 2 replies
-
Try something like: var layout = new DynamicLayout();
// take up all space at the top
layout.Add(Drawable, yscale: true);
// begin a new section for the buttons
layout.BeginVertical();
layout.BeginHorizontal();
layout.Add(button1, xscale: true);
layout.Add(button2, xscale: true);
layout.Add(button3, xscale: true);
layout.Add(button4, xscale: true);
layout.EndHorizontal();
layout.EndVertical();
Content = layout; |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Shadowblitz16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try something like: