Пример #1
0
        static void TextPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            CheckBoxControl checkboxControl = (bindable as CheckBoxControl);

            checkboxControl._checkboxTextLabel.Text = newValue as string;
            checkboxControl.ColumnSpacing           = !string.IsNullOrEmpty(checkboxControl._checkboxTextLabel.Text) && !string.IsNullOrWhiteSpace(checkboxControl._checkboxTextLabel.Text) ? 5 : 0;
        }
Пример #2
0
        private static void TextSizePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            CheckBoxControl checkboxControl = (bindable as CheckBoxControl);

            checkboxControl._checkboxTextLabel.FontSize = (double)newValue;
        }
Пример #3
0
        private static void IsCheckedChanged(BindableObject bindable, object oldValue, object newValue)
        {
            CheckBoxControl Control = (bindable as CheckBoxControl);

            Control._checkboxImage.Source = Control.IsChecked ? Control.CheckIcon : Control.UnCheckIcon;
        }