In Development
Last Updated: 15 Apr 2024 11:56 by ADMIN

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

 

 

 

Unplanned
Last Updated: 08 Apr 2024 18:48 by Shobana
Currently RadCheckBox follows the guidelines of the operating system, meaning that on iOS it is visualized as circle and on Android and Windows - as square.
Unplanned
Last Updated: 21 Aug 2023 14:59 by Glenn
Created by: Glenn
Comments: 0
Category: CheckBox
Type: Feature Request
1

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

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