Exemple #1
0
        protected override void OnShowed()
        {
            base.OnShowed();

            SearchEdit.Focus();

            if (SearchInput.SearchOnLoad())
            {
                btnSearch.Content.click();
            }
        }
Exemple #2
0
 protected override void OnClosed()
 {
     base.OnClosed();
     InputControl.ValidateData();
     if (!Helper.NotDesktop)
     {
         InputControl.Focus();
     }
     else
     {
         InputControl.Scroll((int)PreviousScrollTop, ParentContainer);
     }
 }
Exemple #3
0
        protected override void OnShowed()
        {
            base.OnShowed();

            string dataP = ReadInput.GetAttribute("data-placeholder");

            if (!string.IsNullOrWhiteSpace(dataP))
            {
                EditInput.SetAttribute("placeholder", dataP);
            }
            else
            {
                if (!string.IsNullOrWhiteSpace(ReadInput.GetAttribute("placeholder")))
                {
                    EditInput.SetAttribute("placeholder", ReadInput.GetAttribute("placeholder"));
                }
            }

            EditInput.Focus();
        }
 public override void OnFocus()
 {
     UsedEdit.Focus();
 }