如何在安卓和iOS的XAMARIN中更改选择器的占位符的颜色?PlaceholderColor =“白色”不起作用。
<Picker Title="Search items" TextColor="White"
PlaceholderColor = "white"
VerticalOptions="Start">
<Picker.Items>
<x:String>Item1</x:String>
<x:String>item2</x:String>
<x:String>item3</x:String>
</Picker.Items>
</Picker>
发布于 2018-06-14 11:34:39
在iOS中,您可以在自定义渲染器中执行类似的操作。
Control.AttributedPlaceholder =
new NSAttributedString (Control.AttributedPlaceholder.Value, foregroundColor: UIColor.White);
https://stackoverflow.com/questions/50846939
复制相似问题