From 21bbb2af425a01e09e8128476c1ad0204bdd08e9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 30 May 2019 12:04:31 -0400 Subject: [PATCH] search icon --- src/App/Pages/Vault/CiphersPage.xaml | 9 ++++++++- src/App/Pages/Vault/CiphersPageViewModel.cs | 12 ++++++++++-- src/App/Styles/Base.xaml | 3 ++- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/App/Pages/Vault/CiphersPage.xaml b/src/App/Pages/Vault/CiphersPage.xaml index d8ce22500..2040e8ca0 100644 --- a/src/App/Pages/Vault/CiphersPage.xaml +++ b/src/App/Pages/Vault/CiphersPage.xaml @@ -44,12 +44,19 @@ + + HorizontalTextAlignment="Center" /> _showNoData; - set => SetProperty(ref _showNoData, value); + set => SetProperty(ref _showNoData, value, additionalPropertyNames: new string[] + { + nameof(ShowSearchDirection) + }); } public bool ShowList { get => _showList; - set => SetProperty(ref _showList, value); + set => SetProperty(ref _showList, value, additionalPropertyNames: new string[] + { + nameof(ShowSearchDirection) + }); } + public bool ShowSearchDirection => !ShowList && !ShowNoData; + public void Search(string searchText, int? timeout = null) { var previousCts = _searchCancellationTokenSource; diff --git a/src/App/Styles/Base.xaml b/src/App/Styles/Base.xaml index bd17a9585..edc357536 100644 --- a/src/App/Styles/Base.xaml +++ b/src/App/Styles/Base.xaml @@ -21,7 +21,8 @@ Value="{StaticResource TextColor}" />