Completed
Last Updated: 07 Jun 2023 07:48 by ADMIN
Release 5.2.0
Created by: Victor
Comments: 0
Category: CheckBox
Type: Feature Request
2
Turn off the animations in the CheckBox control
Completed
Last Updated: 15 May 2024 06:59 by ADMIN
Release 7.0.0 (2024 Q2)

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; }  
}