diff --git a/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs b/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs
index c87e8269..782f5294 100644
--- a/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs
+++ b/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs
@@ -8,7 +8,6 @@
using System;
using System.ComponentModel;
-using System.Reflection;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls.Primitives;
@@ -353,22 +352,6 @@ namespace SafeExamBrowser.UserInterface.Desktop.Windows
}
}
- ///
- /// Get next tab order element. Copied from https://stackoverflow.com/questions/5756448/in-wpf-how-can-i-get-the-next-control-in-the-tab-order
- ///
- /// The element to get next tab order
- /// The container element owning 'e'. Make sure this is a container of 'e'.
- /// True if search only itself and inside of 'container'; otherwise false.
- /// If true and next tab order element is outside of 'container', result in null.
- /// Next tab order element or null if not found
- public DependencyObject GetNextTab(DependencyObject e, DependencyObject container, bool goDownOnly)
- {
- var navigation = typeof(FrameworkElement).GetProperty("KeyboardNavigation", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null);
- var method = navigation.GetType().GetMethod("GetNextTab", BindingFlags.NonPublic | BindingFlags.Instance);
-
- return method.Invoke(navigation, new object[] { e, container, goDownOnly }) as DependencyObject;
- }
-
private void BrowserWindow_Loaded(object sender, RoutedEventArgs e)
{
Handle = new WindowInteropHelper(this).Handle;
diff --git a/SafeExamBrowser.UserInterface.Mobile/Windows/BrowserWindow.xaml.cs b/SafeExamBrowser.UserInterface.Mobile/Windows/BrowserWindow.xaml.cs
index 3feecaa9..9af07887 100644
--- a/SafeExamBrowser.UserInterface.Mobile/Windows/BrowserWindow.xaml.cs
+++ b/SafeExamBrowser.UserInterface.Mobile/Windows/BrowserWindow.xaml.cs
@@ -8,7 +8,6 @@
using System;
using System.ComponentModel;
-using System.Reflection;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls.Primitives;
@@ -349,22 +348,6 @@ namespace SafeExamBrowser.UserInterface.Mobile.Windows
}
}
- ///
- /// Get next tab order element. Copied from https://stackoverflow.com/questions/5756448/in-wpf-how-can-i-get-the-next-control-in-the-tab-order
- ///
- /// The element to get next tab order
- /// The container element owning 'e'. Make sure this is a container of 'e'.
- /// True if search only itself and inside of 'container'; otherwise false.
- /// If true and next tab order element is outside of 'container', result in null.
- /// Next tab order element or null if not found
- public DependencyObject GetNextTab(DependencyObject e, DependencyObject container, bool goDownOnly)
- {
- var navigation = typeof(FrameworkElement).GetProperty("KeyboardNavigation", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null);
- var method = navigation.GetType().GetMethod("GetNextTab", BindingFlags.NonPublic | BindingFlags.Instance);
-
- return method.Invoke(navigation, new object[] { e, container, goDownOnly }) as DependencyObject;
- }
-
private void BrowserWindow_Loaded(object sender, RoutedEventArgs e)
{
Handle = new WindowInteropHelper(this).Handle;