Expose command that executes when checkbox state changes.
Currently I am using EventToCommandBehavior:
<VerticalStackLayout>
<telerik:RadCheckBox x:Name="checkbox">
<telerik:RadCheckBox.Behaviors>
<telerik:RadEventToCommandBehavior EventName="IsCheckedChanged" Command="{Binding CheckedCommand}" />
</telerik:RadCheckBox.Behaviors>
</telerik:RadCheckBox>
</VerticalStackLayout>
public class ViewModel : NotifyPropertyChangedBase
{
public ViewModel()
{
this.CheckedCommand = new Command<IsCheckedChangedEventArgs>(this.CheckBoxUserCommand);
}
private void CheckBoxUserCommand(IsCheckedChangedEventArgs obj)
{
// logic here:
}
public ICommand CheckedCommand { get; set; }
}
Hi Team,
With CheckBoxes and RadioButtons, there is a concept of Button GroupName... where if belonging to a group, a selection is mutually exclusive to that group.
Here is the official docs from Microsoft for the same feature in WPF => https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.radiobutton.groupname?view=windowsdesktop-7.0
Thank you,
Glenn
When setting IsEnabled to False, the checkbox is still enabled (on Android) and can be checked.
<telerikPrimitives:RadCheckBox IsEnabled="False"/>
RadCheckBox CheckedSymbolColor doesn't reflect the value on Windows. The default value is displayed instead.