diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 98b96b9..3d79c04 100755 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -41,8 +41,8 @@ zaaReloaded2.pfx - - ..\packages\Bovender.0.2.0.0\lib\net40\Bovender.dll + + ..\packages\Bovender.0.3.1.0\lib\net40\Bovender.dll True diff --git a/Tests/packages.config b/Tests/packages.config index e9b2d17..f7121cb 100755 --- a/Tests/packages.config +++ b/Tests/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/zaaReloaded2/ExceptionHandler/ExceptionDetailView.xaml b/zaaReloaded2/ExceptionHandler/ExceptionDetailView.xaml index f69b532..e503838 100755 --- a/zaaReloaded2/ExceptionHandler/ExceptionDetailView.xaml +++ b/zaaReloaded2/ExceptionHandler/ExceptionDetailView.xaml @@ -32,7 +32,7 @@ settings:WindowState.Save="True" > - + diff --git a/zaaReloaded2/ExceptionHandler/SubmissionFailureView.xaml b/zaaReloaded2/ExceptionHandler/SubmissionFailureView.xaml index 0f707b4..fbaecfb 100755 --- a/zaaReloaded2/ExceptionHandler/SubmissionFailureView.xaml +++ b/zaaReloaded2/ExceptionHandler/SubmissionFailureView.xaml @@ -25,7 +25,7 @@ Title="Fehlerbericht versenden" > - + - + diff --git a/zaaReloaded2/ExceptionHandler/SubmissionSuccessView.xaml b/zaaReloaded2/ExceptionHandler/SubmissionSuccessView.xaml index 29702d6..c02b4c4 100755 --- a/zaaReloaded2/ExceptionHandler/SubmissionSuccessView.xaml +++ b/zaaReloaded2/ExceptionHandler/SubmissionSuccessView.xaml @@ -25,7 +25,7 @@ Title="Fehlerbericht versenden" > - + - /// Make text boxes select all text on focus. - /// - /// - /// http://stackoverflow.com/a/2553297/270712 - /// - void RegisterTextBoxSelectAll() - { - // Select the text in a TextBox when it receives focus. - EventManager.RegisterClassHandler(typeof(TextBox), TextBox.PreviewMouseLeftButtonDownEvent, - new MouseButtonEventHandler(SelectivelyIgnoreMouseButton)); - EventManager.RegisterClassHandler(typeof(TextBox), TextBox.GotKeyboardFocusEvent, - new RoutedEventHandler(SelectAllText)); - EventManager.RegisterClassHandler(typeof(TextBox), TextBox.MouseDoubleClickEvent, - new RoutedEventHandler(SelectAllText)); - } - - void SelectivelyIgnoreMouseButton(object sender, MouseButtonEventArgs e) - { - // Find the TextBox - DependencyObject parent = e.OriginalSource as UIElement; - while (parent != null && !(parent is TextBox)) - parent = VisualTreeHelper.GetParent(parent); - - if (parent != null) - { - var textBox = (TextBox)parent; - if (!textBox.IsKeyboardFocusWithin) - { - // If the text box is not yet focused, give it the focus and - // stop further processing of this click event. - textBox.Focus(); - e.Handled = true; - } - } - } - - void SelectAllText(object sender, RoutedEventArgs e) - { - var textBox = e.OriginalSource as TextBox; - if (textBox != null) - textBox.SelectAll(); - } } } diff --git a/zaaReloaded2/Views/AboutView.xaml b/zaaReloaded2/Views/AboutView.xaml index 149c863..dab444c 100755 --- a/zaaReloaded2/Views/AboutView.xaml +++ b/zaaReloaded2/Views/AboutView.xaml @@ -25,7 +25,7 @@ Title="Über..." > - + diff --git a/zaaReloaded2/Views/ElementPickerView.xaml b/zaaReloaded2/Views/ElementPickerView.xaml index 3a42d03..f4670e0 100755 --- a/zaaReloaded2/Views/ElementPickerView.xaml +++ b/zaaReloaded2/Views/ElementPickerView.xaml @@ -28,7 +28,7 @@ FocusManager.FocusedElement="{Binding ElementName=treeview}" > - +