小编Dum*_*lva的帖子

Xamarin Forms Listview 圆角单元格高亮显示灰显

我正在寻找一种解决方案来自定义带有圆角的点击列表视图单元格灰色

这就是我现在拥有的但我需要将灰色作为下一个图像

这就是我现在拥有的但我需要将灰色作为下一个图像

**这就是我所期待的!!! 这就是我所期待的!!!

<ListView ItemSelected="ItemSelected" ItemsSource="{Binding Patients}" SeparatorVisibility="None">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <custom:RoundedCornerView RoundedCornerRadius="12" Margin="11,5.5,11,5.5" VerticalOptions="FillAndExpand" >
                            <StackLayout Orientation="Vertical" BackgroundColor="White" Padding="11" >
                                <Label Text="{Binding WardName}".../>
                            </StackLayout>
                        </custom:RoundedCornerView>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
Run Code Online (Sandbox Code Playgroud)

xaml xamarin xamarin.forms

5
推荐指数
1
解决办法
961
查看次数

标签 统计

xamarin ×1

xamarin.forms ×1

xaml ×1