Issue
How to change the placeholder color and cursor color in ios renderer? I have changed the TintColor property in Placeholder and Cursor color in Control.AttributedPlaceholder, it is not changed the placeholder color and cursor color in ios
public class CustomMaterialEntryRenderer : MaterialEntryRenderer {
}
Solution
Here we don’t need to use MaterialEntryRenderer
.
Just set PlaceholderColor
in Forms project , it will change Placeholder and cursor color .
<Entry Placeholder"test" Visual"Material" Focused"Entry_Focused" Unfocused"Entry_Unfocused"/>
private void Entry_Focused(object sender, FocusEventArgs e)
{
var entry sender as Entry;
entry.PlaceholderColor Color.Red;
}
private void Entry_Unfocused(object sender, FocusEventArgs e)
{
var entry sender as Entry;
entry.PlaceholderColor Color.Gray;
}
Answered By – ColeX – MSFT