From b0ac52720a3754fc4bad2f499e937220568c347f Mon Sep 17 00:00:00 2001 From: "Kai.Bratvogel" Date: Fri, 31 Jul 2020 14:17:25 +0200 Subject: [PATCH] #213 --- .../MainWindow.xaml | 72 ++++++++++--------- .../MainWindow.xaml.cs | 8 +++ .../Resources/Styles/ButtonStyles.xaml | 67 ++++++++++++++++- .../Resources/Styles/IconStyles.xaml | 11 +-- .../Resources/Styles/TextBoxStyles.xaml | 3 +- 5 files changed, 117 insertions(+), 44 deletions(-) diff --git a/TrustCenterSearch.Presentation/MainWindow.xaml b/TrustCenterSearch.Presentation/MainWindow.xaml index 3d8664f..c69b5ce 100644 --- a/TrustCenterSearch.Presentation/MainWindow.xaml +++ b/TrustCenterSearch.Presentation/MainWindow.xaml @@ -99,18 +99,18 @@ Height="auto" Text="{Binding AddTrustCenterName, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding UserInputIsEnabled}" - Width="200" + Width="200" HorizontalAlignment="Right" - ToolTip="Enter a name that describes the collection of certificates you want to import"/> + ToolTip="Enter a name that describes the collection of certificates you want to import" /> + ToolTip="Enter a url that leads to a file containing hashed x509 certificates" /> - + + + + + + + + + + @@ -242,11 +265,11 @@ - + - + @@ -270,23 +293,6 @@ Style="{StaticResource SearchResultSerialNumberResultTextBoxStyle}" Foreground="{Binding SerialNumber, Converter={StaticResource HighlightConverter}, ConverterParameter={x:Reference SearchBar}}" /> - - - - - - - - - diff --git a/TrustCenterSearch.Presentation/MainWindow.xaml.cs b/TrustCenterSearch.Presentation/MainWindow.xaml.cs index 64de7f6..be0c080 100644 --- a/TrustCenterSearch.Presentation/MainWindow.xaml.cs +++ b/TrustCenterSearch.Presentation/MainWindow.xaml.cs @@ -1,5 +1,6 @@ using System; using System.Windows; +using System.Windows.Controls; using System.Windows.Input; namespace TrustCenterSearch.Presentation @@ -24,5 +25,12 @@ private void WatermarkVisibilityConverter(object sender, KeyEventArgs e) this.SearchWatermark.Visibility = Visibility.Collapsed; } + + private void SearchBar_OnTextChanged(object sender, TextChangedEventArgs e) + { + /*sender as TextBox + this.DataContext as ViewModel*/ + + } } } \ No newline at end of file diff --git a/TrustCenterSearch.Presentation/Resources/Styles/ButtonStyles.xaml b/TrustCenterSearch.Presentation/Resources/Styles/ButtonStyles.xaml index 79109cd..ceb04a3 100644 --- a/TrustCenterSearch.Presentation/Resources/Styles/ButtonStyles.xaml +++ b/TrustCenterSearch.Presentation/Resources/Styles/ButtonStyles.xaml @@ -2,6 +2,28 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:TrustCenterSearch.Presentation.Resources.Styles"> + + + + + + + + + + + + + \ No newline at end of file diff --git a/TrustCenterSearch.Presentation/Resources/Styles/IconStyles.xaml b/TrustCenterSearch.Presentation/Resources/Styles/IconStyles.xaml index 667b1d0..ee8007b 100644 --- a/TrustCenterSearch.Presentation/Resources/Styles/IconStyles.xaml +++ b/TrustCenterSearch.Presentation/Resources/Styles/IconStyles.xaml @@ -28,7 +28,7 @@ -