A SegmentedButton Control is a horizontal control made of multiple buttons which can display a title or an image. It automatically resizes the buttons to fit proportionally within the control. When no width is set, the control uses the available width.
The segmented button act as a parent for buttons. In this example we use it in a Bar as the parent object.
Handling the button press event can be done on the child button, or the parent SegmentedButton object.