diff --git a/src/DynamoCoreWpf/Properties/Resources.Designer.cs b/src/DynamoCoreWpf/Properties/Resources.Designer.cs
index 59d25454257..931e47f107e 100644
--- a/src/DynamoCoreWpf/Properties/Resources.Designer.cs
+++ b/src/DynamoCoreWpf/Properties/Resources.Designer.cs
@@ -4011,6 +4011,15 @@ public class Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Please wait....
+ ///
+ public static string PackageSearchViewSearchTextBoxSyncing {
+ get {
+ return ResourceManager.GetString("PackageSearchViewSearchTextBoxSyncing", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Sort by.
///
diff --git a/src/DynamoCoreWpf/Properties/Resources.en-US.resx b/src/DynamoCoreWpf/Properties/Resources.en-US.resx
index 9411ad49d8b..d2ef3a500bb 100644
--- a/src/DynamoCoreWpf/Properties/Resources.en-US.resx
+++ b/src/DynamoCoreWpf/Properties/Resources.en-US.resx
@@ -2184,4 +2184,7 @@ Do you want to install the latest Dynamo update?
Rerun the graph.
+
+ Please wait...
+
\ No newline at end of file
diff --git a/src/DynamoCoreWpf/Properties/Resources.resx b/src/DynamoCoreWpf/Properties/Resources.resx
index 54250d19fc4..eeadef70dc8 100644
--- a/src/DynamoCoreWpf/Properties/Resources.resx
+++ b/src/DynamoCoreWpf/Properties/Resources.resx
@@ -2187,4 +2187,7 @@ Want to publish a different package?
Crash report from Dynamo {0}
+
+ Please wait...
+
\ No newline at end of file
diff --git a/src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerSearchViewModel.cs b/src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerSearchViewModel.cs
index d8dbec90baf..99ac1b20ec4 100644
--- a/src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerSearchViewModel.cs
+++ b/src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerSearchViewModel.cs
@@ -53,7 +53,7 @@ public enum PackageSortingDirection
///
/// Set which kind of sorting should be used for displaying search results
///
- public PackageSortingKey _sortingKey;
+ public PackageSortingKey _sortingKey; // TODO: Set private for 3.0.
public PackageSortingKey SortingKey
{
get { return _sortingKey; }
@@ -71,7 +71,7 @@ public PackageSortingKey SortingKey
///
/// Set which kind of sorting should be used for displaying search results
///
- public PackageSortingDirection _sortingDirection;
+ public PackageSortingDirection _sortingDirection; // TODO: Set private for 3.0.
public PackageSortingDirection SortingDirection
{
get { return _sortingDirection; }
@@ -82,13 +82,49 @@ public PackageSortingDirection SortingDirection
}
}
+ ///
+ /// The string that is displayed in the search box prompt depending on the search state.
+ ///
+ public string SearchBoxPrompt
+ {
+ get
+ {
+ if(SearchState == PackageSearchState.Syncing)
+ {
+ return Resources.PackageSearchViewSearchTextBoxSyncing;
+ }
+ return Resources.PackageSearchViewSearchTextBox;
+ }
+ }
+
+ ///
+ /// Determines whether the the search text box should be displayed.
+ ///
+ /// Returns false if the search state is syncing,
+ ///
+ ///
+ public bool ShowSearchText
+ {
+ get
+ {
+ if(SearchState == PackageSearchState.Syncing)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+ }
+
///
/// SearchText property
///
///
/// This is the core UI for Dynamo, primarily used for logging.
///
- public string _SearchText;
+ public string _SearchText; // TODO: Set private for 3.0.
public string SearchText
{
get { return _SearchText; }
@@ -145,17 +181,21 @@ public bool HasNoResults
get { return this.SearchResults.Count == 0; }
}
+
+ public PackageSearchState _searchState; // TODO: Set private for 3.0.
+
///
/// Gives the current state of search.
///
- public PackageSearchState _searchState;
public PackageSearchState SearchState
{
get { return _searchState; }
set
{
_searchState = value;
- RaisePropertyChanged("SearchState");
+ RaisePropertyChanged(nameof(this.SearchState));
+ RaisePropertyChanged(nameof(this.SearchBoxPrompt));
+ RaisePropertyChanged(nameof(this.ShowSearchText));
}
}
diff --git a/src/DynamoCoreWpf/Views/PackageManager/PackageManagerSearchView.xaml b/src/DynamoCoreWpf/Views/PackageManager/PackageManagerSearchView.xaml
index 9d074ad022b..e6e60e57e63 100644
--- a/src/DynamoCoreWpf/Views/PackageManager/PackageManagerSearchView.xaml
+++ b/src/DynamoCoreWpf/Views/PackageManager/PackageManagerSearchView.xaml
@@ -12,6 +12,7 @@
+