【发布时间】:2022-01-20 15:49:29
【问题描述】:
在我的 Scrollview 中,它的宽度默认是细的,当它悬停时,它的宽度变得正常。 但我想要一个在 xamarin 中具有固定宽度的自定义滚动视图或始终默认滚动 垂直和水平滚动 大家有什么建议
我尝试过的:
<ScrollView VerticalScrollBarVisibility="Always" HorizontalScrollBarVisibility="Always" VerticalOptions="FillAndExpand" >
<StackLayout
Padding="0,0,0,0"
BackgroundColor="{DynamicResource BrandComplementBackgroundColor}"
HorizontalOptions="Fill"
Orientation="Vertical"
VerticalOptions="FillAndExpand"
Parent="">
<FlexLayout
BackgroundColor="Red"
BindableLayout.ItemsSource="{Binding ChipSetCollection}"
Direction="Column"
JustifyContent="Start">
<BindableLayout.ItemTemplate>
<DataTemplate>
<views:ChipSetItemTemplate />
</DataTemplate>
</BindableLayout.ItemTemplate>
</FlexLayout>
</StackLayout>
</ScrollView>
【问题讨论】:
标签: c# wpf xaml uwp xamarin.uwp