enisn / Xamarin.Forms.InputKit

CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
MIT License
589 stars 100 forks source link

CheckBox CheckedChanged #339

Closed TimAce13 closed 1 year ago

TimAce13 commented 1 year ago

When I get data from CheckedChanged fires, but I need to fire it only when user do it. How can I stop firing it when I change CheckBox programmatically ? (Xamarin Forms)

XML

 <CheckBox Grid.Column="4" CheckedChanged="InformationChanged" IsChecked="{Binding IsDone}" Background="#1B1B1B" HorizontalOptions="Center" VerticalOptions="Center" ></CheckBox>

C#

    private void InformationChanged(object sender, EventArgs eventArgs)
    {
        //do something when user changed CheckBox value
    }