如何在Xamarin Mac中的Picker中更改颜色?

时间:2018-07-18 02:02:09

标签: colors xamarin.forms picker xamarin.mac

我的Xamarin mac应用上有一个选择器,我想更改背景色和边框色(蓝色),该怎么做?

enter image description here

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上则无法。

0 个答案:

没有答案