Posted 8 July 2020, 9:30 pm EST
Hi Amit,
Thanks for sharing the detailed sheet. Please find the answers below:
1) #120624 Other functions may be affected when the full screen is displayed.
This issue does not seem due to the PdfViewer and might be dependent on your parent window and taskbar settings.
With no specific settings for parent window and having taskbar in locked state I could’t observe this behavior.
2) #120625 The tab order is invalid.
You can prevent the Tab navigation from going on to pdf preview by using KeyboardNavigation.SetTabNavigation method inside PdfViewer Loaded event as follows:
private void _pdfViewer_Loaded(object sender, RoutedEventArgs e)
{
// Stopping Tab navigation on pages
var c1ListViewer = _pdfViewer.Template.FindName("PageList", _pdfViewer) as C1ListViewer;
KeyboardNavigation.SetTabNavigation(c1ListViewer, KeyboardNavigationMode.None);
}
3) #120634 The starting focus surrounds the entire screen.
Focus moves from parent to child elements by default while navigating through tab.
And the most outer parent is the border of the control so it gets focused first. If required then you may change the focus to the desired element using Loaded event as follows:
private void _pdfViewer_Loaded(object sender, RoutedEventArgs e)
{
var pdfViewerToolbar = _pdfViewer.Template.FindName("4_T", _pdfViewer) as C1PdfViewerToolbar;
// Focuses the first item in toolbar when pdfViewer is loaded.
(pdfViewerToolbar.Template.FindName("4_T", pdfViewerToolbar) as StackPanel).Children[0].Focus();
}
4) Regarding #120627 and #120633 :
These two issues has already been replied in this thread above along with a sample. Please check them once and let us know in case we need to do something specific.
Best Regards,
Basant