RadioButton

A RadioButtion allows you to select an option from a set of options.

open_from_bundles: failed to load assembly radiobutton.dll

Android :[libc] Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 32084 (ame.radiobutton), pid 32084 (ame.radiobutton)

Exception thrown: 'System.Reflection.TargetInvocationException' in System.Private.CoreLib.dll An exception of type 'System.Reflection.TargetInvocationException' occurred in System.Private.CoreLib.dll but was not handled in user code Exception has been thrown by the target of an invocation.


        <StackLayout>
            <Label Text="Please select a Fruit from below:" />
            <RadioButton Content="Apple" />
            <RadioButton Content="Avocado"
                            IsChecked="true" />
            <RadioButton Content="Orange" />
            <RadioButton Content="Banana" />
        </StackLayout>                    
                

A RadioButton has a Value property to define an optional unique value to associate with the radio button. This enables the value of a RadioButton to be different to its content.

Group RadioButtons

CheckedChanged Event


        <RadioButton Content="Apple"
            GroupName="Fruits"
            CheckedChanged="OnRadioButtonCheckedChanged" />
           

When the IsChecked property changes, a CheckedChanged event fires. An event handler OnRadioButtonCheckedChanged can be registered to respond to the change.

.NET MAUI