private void Container_OnDoubleTap(Grid container, DoubleTappedRoutedEventArgs e) { // find container var index = Containers.IndexOf(container); if (index == -1) { return; } RaiseDoubleTap(index); e.Handled = true; }
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; }