예제 #1
0
        private void FocusNext(Grid.IGridList <View> entries, BorderlessEntry e, string input = "")
        {
            int index = entries.IndexOf(e);

            if (index > -1 && (index + 1) <= entries.Count)
            {
                var next = (BorderlessEntry)entries.ElementAt(index + 1);
                next?.Focus();
                next.Text = input;
            }
        }
예제 #2
0
        private void FocusBack(Grid.IGridList <View> entries, BorderlessEntry e, bool deleteValue = false)
        {
            MostRecentBackPress = null;
            int index = entries.IndexOf(e);

            if (index > -1 && (index - 1) >= 0)
            {
                var prev  = (BorderlessEntry)entries.ElementAt(index - 1);
                var input = prev.Text;
                prev?.Focus();
                if (deleteValue)
                {
                    prev.Text           = "";
                    MostRecentBackPress = new BackButtonEventArgs("", input);
                }
            }
        }