@@ -53,14 +53,14 @@ public CheckBox()
5353 Padding = new Thickness ( 0 , 10 ) ;
5454 Spacing = 10 ;
5555 frmBackground . Content = boxSelected ;
56-
5756 ApplyLabelPosition ( LabelPosition ) ;
5857 ApplyIsCheckedAction = ApplyIsChecked ;
5958 ApplyIsPressedAction = ApplyIsPressed ;
6059 GestureRecognizers . Add ( new TapGestureRecognizer
6160 {
6261 Command = new Command ( ( ) => { if ( IsDisabled ) return ; IsChecked = ! IsChecked ; ExecuteCommand ( ) ; CheckChanged ? . Invoke ( this , new EventArgs ( ) ) ; ValidationChanged ? . Invoke ( this , new EventArgs ( ) ) ; } ) ,
6362 } ) ;
63+
6464 imgSelected . BackgroundColor = Colors . Cyan ;
6565
6666 imgSelected . WidthRequest = 15 ;
@@ -218,7 +218,7 @@ public LabelPosition LabelPosition
218218
219219 #region BindableProperties
220220#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
221- public static readonly BindableProperty ColorProperty = BindableProperty . Create ( nameof ( Color ) , typeof ( Color ) , typeof ( CheckBox ) , InputKitOptions . GetAccentColor ( ) , propertyChanged : ( bo , ov , nv ) => ( bo as CheckBox ) . UpdateColors ( ) ) ;
221+ public static readonly BindableProperty ColorProperty = BindableProperty . Create ( nameof ( Color ) , typeof ( Color ) , typeof ( CheckBox ) , GlobalSetting . Color , propertyChanged : ( bo , ov , nv ) => ( bo as CheckBox ) . UpdateColors ( ) ) ;
222222 public static readonly BindableProperty TextColorProperty = BindableProperty . Create ( nameof ( TextColor ) , typeof ( Color ) , typeof ( CheckBox ) , GlobalSetting . TextColor , propertyChanged : ( bo , ov , nv ) => ( bo as CheckBox ) . TextColor = ( Color ) nv ) ;
223223 public static readonly BindableProperty IconColorProperty = BindableProperty . Create ( nameof ( IconColor ) , typeof ( Color ) , typeof ( CheckBox ) , GlobalSetting . Color , propertyChanged : ( bo , ov , nv ) => ( bo as CheckBox ) . UpdateColors ( ) ) ;
224224 public static readonly BindableProperty IsCheckedProperty = BindableProperty . Create ( nameof ( IsChecked ) , typeof ( bool ) , typeof ( CheckBox ) , false , BindingMode . TwoWay , propertyChanged : ( bo , ov , nv ) => ( bo as CheckBox ) . ApplyIsCheckedAction ( bo as CheckBox , ( bool ) nv ) ) ;
0 commit comments