【发布时间】:2018-06-11 15:17:07
【问题描述】:
我在 Xamarin 论坛上问过同样的问题,但没有人回答我的问题。
我正在使用 X 实验室和我的代码,如下所示。
我的 Portable 项目的 ContentPage;
public class CheckBoxPage : ContentPage
{
public CheckBoxPage()
{
CheckBox check = new CheckBox
{
TextColor = Color.Red,
BackgroundColor = Color.Black,
HorizontalOptions = LayoutOptions.FillAndExpand
};
CheckBox unCheck = new CheckBox
{
TextColor = Color.Yellow,
BackgroundColor = Color.Black,
HorizontalOptions = LayoutOptions.FillAndExpand
};
Content = new StackLayout
{
Children = {
check, unCheck
}
};
}
}
我的 android 和 iOS 外观不同。 iOS 外观不像复选框。不过安卓运行良好。为什么?
【问题讨论】:
标签: xamarin xamarin.ios xamarin.forms