I have six buttons in my app that need to change width based on weather the screen is on a phone, tablet or pc. I've been able to change the width no problem, but I want it to fill the screen 3x3 on the phone and tablet. The pc, i just want the button to not look so huge and wonky. My buttons are actually components that I built since they are multi layered with shapes, icons and a button.
I would assume that the phone screen would be 640. so 3 buttons would be 213.33 wide each or Parent.Width*0.3 basically so they would fit properly. Its dynamic by nature. I've tried Parent.Width*0.3 with the best results but its just not giving me what I need.
The attached pictures are using the formula below, that seems to make them dynamic, but not really what I'm looking for either.
Parent.Width *
Switch(Parent.Width,
ScreenSize.Small, 0.5,
ScreenSize.Medium, 0.3,
0.25)
Due to the 3 attachement rule, I will create another post with the buttons I'm trying to mimic from another app that I unfortunately do not have access to see what the width If/Then statement is. It is dynamic in nature. The buttons shrink and grow. If there are 6, 10, or 20 buttons, they wrap and grow correctly on the screen no matter what resolution it is displayed on.
Any help would be appreciated. Thanks.