Exemple #1
0
            public void Execute(object parameter)
            {
                SelectionCommandContext context = (SelectionCommandContext)parameter;
                var selection = context.PdfViewer.Document.Selection;

                Application.Current.MainPage.DisplayAlert("Selected Text", selection.GetSelectedText(), "OK");

                lock (selection)
                {
                    selection.Clear();
                }
            }
Exemple #2
0
        private void GetSelectedTextCommandExecuted(object obj)
        {
            SelectionCommandContext context = (SelectionCommandContext)obj;
            var selection = context.PdfViewer.Document.Selection;

            Application.Current.MainPage.DisplayAlert("Selected Text", selection.GetSelectedText(), "OK");

            lock (selection)
            {
                selection.Clear();
            }
        }
Exemple #3
0
            public bool CanExecute(object parameter)
            {
                SelectionCommandContext context = parameter as SelectionCommandContext;

                return(context != null);
            }