Beispiel #1
0
        protected override void CleanupUnmanagedResources()
        {
            if (!Overlays.IsNullOrEmpty())
            {
                Overlays.DisposeListObjects();
                Overlays.Clear();
            }

            _focusedWidget        = null;
            m_LastMouseDownWidget = null;
            m_LastMouseMoveWidget = null;
            base.CleanupUnmanagedResources();
        }
Beispiel #2
0
        public RowInfo RowInfoByRowIndex(int rowIndex)
        {
            if (HasVariableHeightRows)
            {
                if (RowOffsets.IsNullOrEmpty() || rowIndex < 0 || rowIndex >= RowOffsets.Count)
                {
                    return(RowInfo.Empty);
                }

                if (rowIndex == 0)
                {
                    return(new RowInfo(rowIndex, 0, RowOffsets [rowIndex]));
                }
                else
                {
                    return(new RowInfo(rowIndex, RowOffsets [rowIndex - 1], RowOffsets [rowIndex]));
                }
            }
            else
            {
                return(new RowInfo(rowIndex, rowIndex * RowHeight, (rowIndex + 1) * RowHeight));
            }
        }