public virtual void BindProperties() { #if DATABINDING TextFontProperty.BindTo(this, () => TextLabel.Font); ThemeProperty.BindTo(this, () => Theme); #endif }
public override void BindProperties() { #if DATABINDING base.BindProperties(); ItemIndexProperty.BindTo(this, () => _Index); #endif }
public override void BindProperties() { base.BindProperties(); IndexProperty.BindTo(this, this, "ItemIndex"); SelectedItemsProperty.BindTo(this, this, "SelectedItems"); SelectedItemProperty.BindTo(this, this, "SelectedItem"); }
public virtual void BindProperties() { TextFontProperty.BindTo(this, TextLabel, "Font"); ThemeProperty.BindTo(this, this, "Theme"); if (TextLabel != null) { CaptionProperty.BindTo(this, TextLabel, "Text"); } ElementInstanceProperty.BindTo(this, this, "ElementInstance"); }
public override void BindProperties() { ActivityProperty.PropertyChangedAction = () => { var activity = ContentView as UIActivityIndicatorView; if (Animating) { activity.StartAnimating(); } else { activity.StopAnimating(); } }; ActivityProperty.BindTo(ContentView, () => ((UIActivityIndicatorView)ContentView).IsAnimating); }
public override void BindProperties() { base.BindProperties(); EditModeProperty.BindTo(this, this, "EditMode"); if (InputControl != null) { DataContextProperty.BindTo(this, InputControl, "Text"); PlaceholderProperty.BindTo(this, InputControl, "Placeholder"); IsPasswordProperty.BindTo(this, InputControl, "SecureTextEntry"); TextProperty.BindTo(this, InputControl, "Text"); DetailTextAlignmentProperty.BindTo(this, InputControl, "TextAlignment"); ReturnKeyTypeProperty.BindTo(this, InputControl, "ReturnKeyType"); KeyboardTypeProperty.BindTo(this, InputControl, "KeyboardType"); DetailTextFontProperty.BindTo(this, InputControl, "Font"); } }
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 } }