public class NumberCompareValidationBehavior : Behavior<Entry>
{
public static readonly BindableProperty TextProperty = BindableProperty.Create("Text", typeof(string),
typeof(NumberCompareValidationBehavior), null, BindingMode.TwoWay, null, propertyChanged: null);
public static readonly BindableProperty CompareTypeProperty = BindableProperty.Create("CompareType", typeof(string),
typeof(NumberCompareValidationBehavior), string.Empty);
public string Text
{
get
{
return (string)GetValue(TextProperty);
}
set
{
SetValue(TextProperty, value);
}
}
public string CompareType
{
get
{
return (string)GetValue(CompareTypeProperty);
}
set
{
SetValue(CompareTypeProperty, value);
xamarin NumberCompareValidationBehavior
最新推荐文章于 2024-06-05 12:12:28 发布