CheckBox

A CheckBox is a type of control for marking an On (checked) / Off (unchecked) state.


        <StackLayout
            Margin="20"
            Orientation="Horizontal" 
            VerticalOptions="Start">
            <Label Text="Mobile"
                    VerticalOptions="Center" />
            <CheckBox IsChecked="true" 				  
                        CheckedChanged="OnCheckedChanged" />
        </StackLayout>
                

Code Behind


        void OnCheckedChanged(object sender, CheckedChangedEventArgs e)
        {
            Console.WriteLine("OnCheckedChanged");
        }
            

Download

.NET MAUI