protected override void OnShowed() { base.OnShowed(); SearchEdit.Focus(); if (SearchInput.SearchOnLoad()) { btnSearch.Content.click(); } }
protected override void OnClosed() { base.OnClosed(); InputControl.ValidateData(); if (!Helper.NotDesktop) { InputControl.Focus(); } else { InputControl.Scroll((int)PreviousScrollTop, ParentContainer); } }
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(); }