내가 이런 식으로 어떻게 할 수 있습니까? 당신은 ~ Z를
에서 알파벳하여 그룹 제목을 정렬 할 경우
는 당신은 당신의 ListView의 ItemsSource로 바인딩 그 전에 그룹을 정렬 할 필요가있다.
var gpData = Contacts.GroupBy(a => a.Name[0], (key, con) => new GroupData() { HeaderTitle = key, Items = con.ToList() }).OrderBy(o=>o.HeaderTitle);
가 어떻게 D 클릭에서 사용자를 방지 할 수 있습니다, J, K, L 항목의 GridView의 (나는 ZoomInView에서 D, J, K, L의 모든 항목을 가지고 있지 않는 한).
기본 원칙은 ListViewItem의 IsEnabled
속성을 false로 설정해야한다는 것입니다.
<SemanticZoom.ZoomedOutView>
<ListView ItemsSource="{x:Bind CVS.View.CollectionGroups}" SelectionMode="None" GotFocus="ListView_GotFocus">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="IsEnabled" Value="False"></Setter>
</Style>
</ListView.ItemContainerStyle>
<ListView.ItemTemplate>
<DataTemplate x:DataType="wuxdata:ICollectionViewGroup">
<TextBlock Text="{x:Bind Group.(data:GroupData.HeaderTitle)}"/>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</SemanticZoom.ZoomedOutView>
경우에 따라 IsEnable
속성을 동적으로 설정해야합니다.
감사합니다. –