Uiscrollview Xamarin.UWP中的ScrollView在触摸屏上不工作
我正在尝试为包含ScrollView的ContentView设置AbosoluteLayout.TranslatedTo。在这种情况下,ScrollView不在触摸屏上工作,但在鼠标交互上工作。 我将C#中的代码添加为propertiesView.TranslateTo(propertiesView.Width/2,0400,Easing.Linear);如果我没有使用AbsoluteLayout.TranslatedTo,这意味着ScrollView可以处理这两种交互。 如何解决这个问题?这是我的密码Uiscrollview Xamarin.UWP中的ScrollView在触摸屏上不工作,uiscrollview,uwp,xamarin.forms,xamarin.windows,Uiscrollview,Uwp,Xamarin.forms,Xamarin.windows,我正在尝试为包含ScrollView的ContentView设置AbosoluteLayout.TranslatedTo。在这种情况下,ScrollView不在触摸屏上工作,但在鼠标交互上工作。 我将C#中的代码添加为propertiesView.TranslateTo(propertiesView.Width/2,0400,Easing.Linear);如果我没有使用AbsoluteLayout.TranslatedTo,这意味着ScrollView可以处理这两种交互。 如何解决这个问题?这是
<AbsoluteLayout x:Name="absoluteLay" VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"
AbsoluteLayout.LayoutBounds="0,500,500,500">
<ContentView x:Name="propertiesView" BackgroundColor="White"
AbsoluteLayout.LayoutBounds="0,0,500,500" >
<ScrollView x:Name="propertiesContent" Padding="20,5,20,0"
Grid.Row="1" Grid.ColumnSpan="2" Orientation="Vertical"
AbsoluteLayout.LayoutBounds="1,1,1,1">
<StackLayout>
<Label Text="Label1" />
<Label Text="Label2" />
<Label Text="Label3" />
<Label Text="Label4" />
<Label Text="Label5" />
<Label Text="Label6" />
<Label Text="Label7" />
<Label Text="Label8" />
<Label Text="Label9" />
<Label Text="Label10" />
<Label Text="Label11" />
<Label Text="Label12" />
<Label Text="Label13" />
<Label Text="Label14" />
<Label Text="Label15" />
<Label Text="Label16" />
<Label Text="Label17" />
<Label Text="Label18" />
<Label Text="Label19" />
<Label Text="Label20" />
<Label Text="Label21" />
<Label Text="Label22" />
<Label Text="Label23" />
<Label Text="Label24" />
</StackLayout>
</ScrollView>
</ContentView>
</AbsoluteLayout>
谢谢,
Santhiya A对我来说,很不清楚你到底想要实现什么样的布局。你想要什么样的布局?只是尝试在AbsoluteLayout中添加scrollview并应用AbsoluteLayout的翻译。