예제 #1
0
        public override void BindProperties()
        {
#if DATABINDING
            base.BindProperties();

            EditModeProperty.BindTo(this, () => EditMode);
#endif
            if (Entry != null)
            {
                ValueProperty.BindTo(this, () => Entry.Text);

#if DATABINDING
                PlaceholderProperty.BindTo(this, () => Entry.Placeholder);
                IsPasswordProperty.BindTo(this, () => Entry.SecureTextEntry);
                TextProperty.BindTo(this, () => Entry.Text);
                DetailTextAlignmentProperty.BindTo(this, () => Entry.TextAlignment);
                ReturnKeyTypeProperty.BindTo(this, () => Entry.ReturnKeyType);
                KeyboardTypeProperty.BindTo(this, () => Entry.KeyboardType);
                DetailTextFontProperty.BindTo(this, () => Entry.Font);
#endif
            }
        }
예제 #2
0
 public override void BindProperties()
 {
     base.BindProperties();
     ValueProperty.BindTo(this, () => Checkmark);
 }
예제 #3
0
 public override void BindProperties()
 {
     base.BindProperties();
     ValueProperty.BindTo(this, () => Switch.On);
 }