colors - 如何在 Xamarin Mac 中更改 Picker 的颜色?
问题描述
我的 Xamarin mac 应用程序上有一个选择器,我想更改背景颜色和边框颜色(蓝色),我该怎么做?
Picker picker1 = new Picker { Items = { translateExt.transltR("Option1"), "Option2", "Option3" }, SelectedIndex = outputMode, WidthRequest = 210, TextColor = Color.FromHex(fileManagerPlatform.getColorText()), VerticalOptions = LayoutOptions.CenterAndExpand};
picker1.BackgroundColor = Color.Transparent;
之前的代码适用于 Android、iOs、UWP 以更改背景颜色,但不适用于 Mac。
解决方案
推荐阅读
- python - 如何序列化布尔数组
- javascript - 需要读取本地文件的 npm 包?
- firebase - 域和子域之间的 Firebase 身份验证共享
- javascript - Material-UI组件中componentsProps的用途是什么?
- c# - 如何在不使用 for 循环的情况下从 appsettings 文件中读取对象数组中特定键的值
- var - 如何将var传递给另一个类C#
- r - 如何在 R 中使用循环导入 .cvs 文件?
- asp.net - asp.net 和 signalR ,JsonException:检测到可能的对象循环
- linux - C Shell:“如果:表达式语法”
- python - 为什么 dask 的“to_sql”比 pandas 花费更多时间?