GroupShortNameBinding添加一个项目符号-如何删除

问题描述 投票:1回答:1

我已在iOS中的列表上启用分组功能,并向每个条目添加了字母索引

但是,即使它正确显示了字母,也向我显示了每个字母之间的项目符号分界线?

我想摆脱这些,任何人都可以建议如何?

<ListView ItemsSource="{Binding allGames}" IsGroupingEnabled="True" GroupShortNameBinding="{Binding LETTER}">
    <ListView.ItemTemplate>

        <DataTemplate>
            <ViewCell>

                <Label TextColor="Black" Text="{Binding GAME_NAME}"/>

                </ViewCell>

        </DataTemplate>

    </ListView.ItemTemplate>
 </ListView>

enter image description here

将索引键(字母)添加到列表的代码

if (allGames == null)
{
allGames = new ObservableCollection<GAME_TBL>();

}

var services = new DataModels();

GAME_SELECTION _select = new GAME_SELECTION();

allGames = await services.Games(1, _select);

foreach (GAME_TBL _indexTable in allGames)

{
_indexTable.LETTER = _indexTable.GAME_NAME.Substring(0, 1);
}
xamarin.forms xamarin.ios
1个回答
0
投票

您无法远程控制所谓的“子弹点”,这是设计使然。该部分的正式术语称为Jump list

幕后发生的事情是您分组的项目太多。在这种情况下,有时手机的高度无法容纳所有手机的高度,因此它会将某些物品隐藏在圆点后面。

您可以自定义列表-更改其颜色等,但不能删除项目符号。但是,您可以做的是减少物品的数量,因为我看到有些重复的物品-您有3xS和2xT等,如果这是设计使然,请照此进行。如果没有,请尝试更好地将项目分组。

© www.soinside.com 2019 - 2024. All rights reserved.