Exemple #1
0
        void styleAutoCompleteTableForBorderStyle(UITextBorderStyle borderStyle)
        {
            if (autoCompleteDelegate != null)
            {
                if (!(this.autoCompleteDelegate.ShouldStyleAutoCompleteTableView(this, AutoCompleteTableView, borderStyle)))
                {
                    return;
                }
            }

            switch (borderStyle)
            {
            case UITextBorderStyle.RoundedRect:
                this.setRoundedRectStyleForAutoCompleteTableView();
                break;

            case UITextBorderStyle.Bezel:
            case UITextBorderStyle.Line:
                this.setLineStyleForAutoCompleteTableView();
                break;

            case UITextBorderStyle.None:
                this.setNoneStyleForAutoCompleteTableView();
                break;

            default:
                break;
            }
        }
        protected override void OnAttached()
        {
            var editText = Control as UITextField;

            if (editText != null)
            {
                _old = editText.BorderStyle;
                editText.BorderStyle = UITextBorderStyle.None;
            }
        }
Exemple #3
0
        /// <summary>
        /// Method Name     : SetEditableDateControl
        /// Author          : Hiren Patel
        /// Creation Date   : 30 JAN 2018
        /// Purpose         : Sets the editable date control.
        /// Revision        :
        /// </summary>
        /// <param name="isEditable">If set to <c>true</c> is editable.</param>
        public void SetEditableDateControl(bool isEditable)
        {
            txtPackDate.UserInteractionEnabled = isEditable;
            txtLoadDate.UserInteractionEnabled = isEditable;
            txtMoveDate.UserInteractionEnabled = isEditable;
            UITextBorderStyle borderStyle = isEditable ? UITextBorderStyle.RoundedRect : UITextBorderStyle.None;

            txtPackDate.BorderStyle = borderStyle;
            txtLoadDate.BorderStyle = borderStyle;
            txtMoveDate.BorderStyle = borderStyle;
        }
Exemple #4
0
        protected override void OnAttached()
        {
            var editText = Control as UITextField;

            if (editText == null)
            {
                return;
            }

            old = editText.BorderStyle;
            editText.BorderStyle = UITextBorderStyle.None;

            editText.SpellCheckingType      = UITextSpellCheckingType.No;        // No Spellchecking
            editText.AutocorrectionType     = UITextAutocorrectionType.No;       // No Autocorrection
            editText.AutocapitalizationType = UITextAutocapitalizationType.AllCharacters;
        }
        protected override void OnAttached()
        {
            var control = Control as UITextField;

            if (control == null)
            {
                return;
            }

            defaultBorderStyle = control.BorderStyle;

            var effect = Element.Effects.FirstOrDefault(x => x is Naxam.Effects.EntryEffectNoBorder);

            if (effect == null)
            {
                return;
            }

            control.BorderStyle = UITextBorderStyle.None;
        }
Exemple #6
0
        /// <summary>
        /// Method Name     : SetEditableDateControl
        /// Author          : Hiren Patel
        /// Creation Date   : 30 JAN 2018
        /// Purpose         : Sets the editable date control.
        /// Revision        :
        /// </summary>
        /// <param name="isEditable">If set to <c>true</c> is editable.</param>
        public void SetEditableTextControl(bool isEditable)
        {
            if (isEditable)
            {
                // need to make enter only decimal value in textbox
            }
            else
            {
                txtDeclaredValue.ShouldChangeCharacters = null;
                txtCost.ShouldChangeCharacters          = null;
            }

            txtDeclaredValue.UserInteractionEnabled = isEditable;
            txtCost.UserInteractionEnabled          = false;

            UITextBorderStyle borderStyle = isEditable ? UITextBorderStyle.RoundedRect : UITextBorderStyle.None;

            txtCost.BorderStyle          = borderStyle;
            txtDeclaredValue.BorderStyle = borderStyle;
            txtCoverageValue.BorderStyle = borderStyle;
        }
 public bool ShouldStyleAutoCompleteTableView(MLPAutoCompleteTextField AutoCompleteTextField, UITableView autoCompleteTableView, UITextBorderStyle borderStyle)
 {
     return true;
 }
        void styleAutoCompleteTableForBorderStyle(UITextBorderStyle borderStyle)
        {
            if(autoCompleteDelegate != null)
            if(!(this.autoCompleteDelegate.ShouldStyleAutoCompleteTableView(this,AutoCompleteTableView,borderStyle)))
                return;

            switch (borderStyle) {
            case UITextBorderStyle.RoundedRect:
                this.setRoundedRectStyleForAutoCompleteTableView();
                break;
            case UITextBorderStyle.Bezel:
            case UITextBorderStyle.Line:
                this.setLineStyleForAutoCompleteTableView();
                break;
            case UITextBorderStyle.None:
                this.setNoneStyleForAutoCompleteTableView();
                break;
            default:
                break;
            }
        }
 public bool ShouldStyleAutoCompleteTableView(MLPAutoCompleteTextField AutoCompleteTextField, UITableView autoCompleteTableView, UITextBorderStyle borderStyle)
 {
     return(true);
 }