【发布时间】:2017-02-21 02:00:50
【问题描述】:
此代码在 iOS 和 Android 上运行良好,但在 Windows 10 移动设备(Microsoft Lumia 650,版本:1511,内部版本:10.0.10586.11)上运行良好:
public App()
{
var layout = new StackLayout
{
Orientation = StackOrientation.Vertical,
Padding = 0,
Children =
{
new Button { Text = "A" },
new Button { Text = "B" },
new Button { Text = "C" },
new Button { Text = "D" },
new Button { Text = "E" },
new Button { Text = "F" },
new Button { Text = "G" },
new Button { Text = "H" },
new Button { Text = "I" },
new Button { Text = "J" },
new Button { Text = "K" },
new Button { Text = "L" },
new Button { Text = "M" },
new Button { Text = "N" },
new Button { Text = "O" },
new Button { Text = "P" },
new Button { Text = "Q" },
new Button { Text = "R" },
new Button { Text = "S" },
new Button { Text = "T" },
new Button { Text = "U" },
new Button { Text = "V" },
new Button { Text = "W" },
new Button { Text = "X" },
new Button { Text = "Y" },
new Button { Text = "Z" },
},
};
var scrollView = new ScrollView { Content = layout };
// The root page of your application
MainPage = new ContentPage
{
Content = scrollView,
};
}
滚动视图根本不滚动。我可以看到滚动条,但它不滚动。我尝试与HorizontalOptions/VerticalOptions 一起玩,但这也无济于事。在模拟器中,它通过鼠标滚动来工作。 Label 也会出现同样的问题。
这里有什么问题?
【问题讨论】:
-
您使用的是什么版本的
Xamarin.Forms?它可能与this bug 有关 -
也许相关。使用 Xamarin Forms 2.0 和 UWP。
标签: xamarin xamarin.ios scrollview xamarin.forms windows-10-mobile