【发布时间】:2017-09-17 07:48:33
【问题描述】:
【问题讨论】:
标签: xamarin xamarin.ios xamarin.android xamarin.forms
【问题讨论】:
标签: xamarin xamarin.ios xamarin.android xamarin.forms
试试这个 Add ScrollView 并将它的方向设置为水平
ScrollView = new ScrollView
{
Orientation = ScrollOrientation.Horizontal
};
//ScrollView.Scrolled += ScrollView_Scrolled;
ItemsStackLayout = new StackLayout
{
Orientation = StackOrientation.Horizontal,
Padding = new Thickness(0),
Spacing = 0,
HorizontalOptions = LayoutOptions.FillAndExpand
};
ScrollView.Content = ItemsStackLayout;
您可以将元素的宽度设置在视图宽度的 1/3 以内
【讨论】: