From 77b01833c96c62d24ef66477a4d644767f8da6a3 Mon Sep 17 00:00:00 2001 From: Kangho Hur Date: Wed, 1 Sep 2021 20:34:06 +0900 Subject: [PATCH] Implement PlaceholderColor property in SearchBarHandlers - Implement PlaceholderColor property in SearchBarHandlers (#1512) --- src/Core/src/Handlers/SearchBar/SearchBarHandler.Tizen.cs | 5 +++++ src/Core/src/Platform/Tizen/EntryExtensions.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/Core/src/Handlers/SearchBar/SearchBarHandler.Tizen.cs b/src/Core/src/Handlers/SearchBar/SearchBarHandler.Tizen.cs index 5fd5c81bd536..bb2bd2f6c2b5 100644 --- a/src/Core/src/Handlers/SearchBar/SearchBarHandler.Tizen.cs +++ b/src/Core/src/Handlers/SearchBar/SearchBarHandler.Tizen.cs @@ -49,6 +49,11 @@ public static void MapPlaceholder(SearchBarHandler handler, ISearchBar searchBar handler.NativeView?.UpdatePlaceholder(searchBar); } + public static void MapPlaceholderColor(SearchBarHandler handler, ISearchBar searchBar) + { + handler.NativeView?.UpdatePlaceholderColor(searchBar); + } + public static void MapFont(SearchBarHandler handler, ISearchBar searchBar) { var fontManager = handler.GetRequiredService(); diff --git a/src/Core/src/Platform/Tizen/EntryExtensions.cs b/src/Core/src/Platform/Tizen/EntryExtensions.cs index 6e5c900a2f81..1573ebd24c26 100644 --- a/src/Core/src/Platform/Tizen/EntryExtensions.cs +++ b/src/Core/src/Platform/Tizen/EntryExtensions.cs @@ -72,6 +72,11 @@ public static void UpdatePlaceholder(this Entry nativeEntry, ITextInput entry) nativeEntry.Placeholder = entry.Placeholder ?? string.Empty; } + public static void UpdatePlaceholderColor(this Entry nativeEntry, ITextInput entry) + { + nativeEntry.PlaceholderColor = entry.PlaceholderColor.ToNative(); + } + public static void UpdateIsReadOnly(this Entry nativeEntry, ITextInput entry) { nativeEntry.IsEditable = !entry.IsReadOnly;