Exemple #1
0
        private void OnTextTap(object sender, PointManipulationEventArgs e)
        {
            if (PageCanvas.CheckSelection(GetTapPoint(e.ManipulationOrigin)))
            {
                return;
            }

            ClearTextSelection();
        }
Exemple #2
0
 private void PageOnTap(object sender, PointManipulationEventArgs e)
 {
     if (_link != null)
     {
         GotoLink(_link.LinkID);
         PageCanvas.Manipulator.Resume();
         _link = null;
     }
 }
Exemple #3
0
        private void PageOnHold(object sender, PointManipulationEventArgs e)
        {
            var point = e.ManipulationOrigin;


            var word = PageCanvas.CurrentTexts.FirstOrDefault(l => l.Rect.Contains(point));

            if (word == null)
            {
                return;
            }

            var words = PageCanvas.CurrentTexts.Where(w => w.TokenID == word.TokenID).ToList();

            word = words.FirstOrDefault();
            TextRenderData wordContinuation = words.LastOrDefault() ?? word;

            //TextRenderData word = PageCanvas.CurrentTexts.FirstOrDefault(l => l.Rect.Contains(point));

            InitTextSelection(word, wordContinuation);
        }