예제 #1
0
        private void Bindable_QueryItemSize(object sender, QueryItemSizeEventArgs e)
        {
            var bindingContext = (sender as SfListView).BindingContext as TeamInfoRepository;
            var collection     = bindingContext.MemberDetails;
            var type           = e.ItemType;

            if (type == ItemType.GroupHeader && (bool)(e.ItemData as GroupResult).Key)
            {
                ;
            }
            else if (type == ItemType.GroupHeader &&
                     !(bool)(e.ItemData as GroupResult).Key)
            {
                e.ItemSize = 0;
                e.Handled  = true;
            }
            if (type == ItemType.Record)
            {
                var isManager = (e.ItemData as TeamInfo).IsScrumMaster;
                if (isManager)
                {
                    e.ItemSize = 0;
                    e.Handled  = true;
                }
            }
        }
예제 #2
0
 private void ListView_QueryItemSize(object sender, QueryItemSizeEventArgs e)
 {
     if (e.ItemIndex % 2 == 0)
     {
         e.ItemSize = 50;
     }
     else
     {
         e.ItemSize = 100;
     }
     e.Handled = true;
 }