0
這裏瀏覽其他佈局列表ViewCell是我的代碼:如何從電網使用Xamarin共享
public class BillDetailGridCell : ViewCell
{
public BillDetailGridCell()
{
Grid grid = new Grid
{
Padding = new Thickness(5, 5, 0, 0),
ColumnDefinitions =
{
new ColumnDefinition { Width = new GridLength(10, GridUnitType.Star) },
new ColumnDefinition { Width = new GridLength(10, GridUnitType.Star) },
new ColumnDefinition { Width = new GridLength(10, GridUnitType.Star) },
},
};
Button BillIdLabel = new Button
{
//YAlign = TextAlignment.Center,
//XAlign = TextAlignment.Start
BackgroundColor = Color.Green,
};
}
}