Esempio n. 1
0
 private void HandleRowHeightChanged(object sender, RowHeightChangedEventArgs e)
 {
     if (JetListViewNodeCollection.IsNodeVisible(e.Row))
     {
         SetScrollRange(_scrollRange - e.OldHeight + e.NewHeight);
         InvalidateBelow(0);
     }
 }
Esempio n. 2
0
        public bool IsNodeVisible(IViewNode node)
        {
            if (node is GroupHeaderNode)
            {
                return(true);
            }
            JetListViewNode lvNode = node as JetListViewNode;

            if (!JetListViewNodeCollection.IsNodeVisible(lvNode))
            {
                return(false);
            }
            return(GetNodeGroupHeader(lvNode).Expanded);
        }