可绑定属性的绑定模式需要设置为 TwoWay 才能将更改传播到您的视图模型。
public static readonly BindableProperty IsCheckedProperty = BindableProperty.Create(
nameof(IsChecked),
typeof(bool),
typeof(PaperCheckBox),
false,
BindingMode.TwoWay);
public static readonly BindableProperty TextProperty = BindableProperty.Create(
nameof(Text),
typeof(string),
typeof(PaperCheckBox),
string.Empty,BindingMode.TwoWay);