コード例 #1
0
        private void Container_OnDoubleTap(Grid container, DoubleTappedRoutedEventArgs e)
        {
            // find container
            var index = Containers.IndexOf(container);

            if (index == -1)
            {
                return;
            }

            RaiseDoubleTap(index);
            e.Handled = true;
        }
コード例 #2
0
        private void Container_OnTap(Grid container, TappedRoutedEventArgs e)
        {
            // find container
            var index = Containers.IndexOf(container);

            if (index == -1)
            {
                return;
            }
            e.Handled = true;

            if (e.GetPosition(container).X > container.ActualWidth / 2)
            {
                index++;
            }

            SelectionLength = 0;
            CaretIndex      = index;
        }