From f58a13117c352164d03f031989c639383c7e60b6 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Wed, 9 Sep 2015 21:45:55 +0200 Subject: [PATCH] Update Bovender to 0.3.1. --- Tests/Tests.csproj | 4 +- Tests/packages.config | 2 +- .../ExceptionHandler/ExceptionDetailView.xaml | 2 +- .../SubmissionFailureView.xaml | 2 +- .../SubmissionProcessView.xaml | 2 +- .../SubmissionSuccessView.xaml | 2 +- zaaReloaded2/ThisAddIn.cs | 46 +------------------ zaaReloaded2/Views/AboutView.xaml | 2 +- zaaReloaded2/Views/ElementPickerView.xaml | 2 +- zaaReloaded2/Views/ElementView.xaml | 2 +- zaaReloaded2/Views/FirstRunView.xaml | 2 +- zaaReloaded2/Views/IoErrorView.xaml | 2 +- zaaReloaded2/Views/ItemCommentView.xaml | 2 +- zaaReloaded2/Views/PreferencesView.xaml | 2 +- .../Views/SettingsRepositoryView.xaml | 2 +- zaaReloaded2/Views/SettingsView.xaml | 2 +- zaaReloaded2/packages.config | 2 +- zaaReloaded2/zaaReloaded2.csproj | 5 +- 18 files changed, 21 insertions(+), 64 deletions(-) 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}" > - +