Object reference

Please i have a build error that occurs in my iOS project. So to avoid duplicates of this question, i already have the question on Stackoverflow. Here is the Link

Thanks for your help


1 Reply

YP Yuvaraj Palanisamy Syncfusion Team July 5, 2021 12:45 PM UTC

 
Greetings from Syncfusion. 
 
We are glad to know while removing the nuget in your project it resolves the reported problem. Also we have IsChecked property in Xamarin.Forms SfCheckBox control which is a IsNullable value type and it is updated by StateChanged event. Hence, we assume that handling IsChecked property by sample level as per the below code example. 
 
CodeSnippet: 
<sfCheckBox:SfCheckBox StateChanged="checkBox_StateChanged" 
                       TextColor="Red"  
                       IsThreeState="True" 
                       IsChecked="True" 
                       x:Name="checkBox"  
                       Text="Checked State"/> 
 
private void checkBox_StateChanged(object sender, Syncfusion.XForms.Buttons.StateChangedEventArgs e) 
{ 
    if(e.IsChecked != null) 
    { 
        checkBox.Text = (e.IsChecked==true)? "Checked State" : "UnChecked State"; 
    } 
    else 
    { 
        checkBox.Text = "Intermediate State"; 
    } 
} 
 
Regards, 
Yuvaraj. 


Loader.
Up arrow icon