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
            }
        }