How to create a toggle button group

304 Views Asked by At

I have this requirement that needs to have a toggle button which will switch to two different places. It looks something like this:

enter image description here

I've been trying to look for a control but it only shows RadioButtonGroup or RadioButton. Another suggestion is a Switch but it doesn't fit a requirement.

Any suggestions which I can do in order to make a toggle button group?

1

There are 1 best solutions below

0
On

Just as Json said, you can create a custom SegmentedControl by yourself.

For this, you can refer to code SegmentedControl.

Though it is based on Xamarin.Form, but it is also apply to Maui.

You can also achieve this by creating a ContentView just as Jason said here. Or use maui-segmented-control of syncfusion.