Get value of Xamarin Forms Custom Rendered Checkbox
问题 I have a Checkbox view rendering properly in Xamarin Forms: public class CheckBoxRenderer : ViewRenderer<LegalCheckbox, CheckBox> { protected override void OnElementChanged(ElementChangedEventArgs<LegalCheckbox> e) { base.OnElementChanged (e); CheckBox control = new Android.Widget.CheckBox(this.Context); control.Checked = false; control.Text = "I agree to terms"; control.SetTextColor (Android.Graphics.Color.Rgb (60, 60, 60)); this.SetNativeControl(control); } } I want to check whether or not