Skip to main content

CheckEdit.CheckedChanged Event

Raises when the IsChecked property value changes.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public event EventHandler CheckedChanged

Event Data

The CheckedChanged event's data class is EventArgs.

Remarks

Use the IsChecked property to obtain the new value.

Example

The code below handles the CheckedChanged event to change a MultilineEdit‘s font attributes.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:dxe="http://schemas.devexpress.com/xamarin/2014/forms/editors"
             x:Class="App1.MainPage">
    <Grid Margin="20,35,20,20">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.5*" />
            <ColumnDefinition Width="0.5*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <dxe:CheckEdit x:Name="boldCheckEdit"
                       CheckedChanged="boldCheckEdit_CheckedChanged"
                       Label="Bold"
                       CheckBoxColor="Red"
                       CheckedCheckBoxColor="Red"
                       VerticalOptions="Center"/>
        <dxe:CheckEdit x:Name="italicCheckEdit"
                       Grid.Column="1"
                       CheckedChanged="italicCheckEdit_CheckedChanged"
                       Label="Italic"
                       CheckBoxColor="Green"
                       CheckedCheckBoxColor="Green"
                       VerticalOptions="Center"/>
        <dxe:MultilineEdit x:Name="multilineEdit"
                           Grid.Row="1"
                           Grid.ColumnSpan="2"
                           Text="Lorem ipsum dolor sit amet."/>
    </Grid>
</ContentPage>
See Also