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