Skip to content

Commit

Permalink
Implement PlaceholderColor property in SearchBarHandlers
Browse files Browse the repository at this point in the history
- Implement PlaceholderColor property in SearchBarHandlers (dotnet#1512)
  • Loading branch information
rookiejava committed Mar 27, 2022
1 parent 2b166d6 commit 7a7244e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Core/src/Handlers/SearchBar/SearchBarHandler.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IFontManager>();
Expand Down
5 changes: 5 additions & 0 deletions src/Core/src/Platform/Tizen/EntryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a7244e

Please sign in to comment.