Esempio n. 1
0
        public void EnsureVisible(object o)
        {
            if (o != null)
            {
                ListSection.PositionedRowIdentifier si = _listSection.GetPositionedIdentifierFromObject(new ListSection.NonGroupRow(o));

                if (si != null)
                {
                    int pos = si.Position - 1;

                    while (pos >= 0)
                    {
                        RowIdentifier gi = _listSection.RowInformation[pos];

                        if (gi is ListSection.GroupIdentifier)
                        {
                            _listSection.FocusedItem = new ListSection.PositionedRowIdentifier(gi, pos);

                            --pos;
                        }
                        else
                        {
                            break;
                        }
                    }

                    _listSection.FocusedItem = si;
                }
            }
            else
            {
                _listSection.FocusedItem = null;
            }
        }
Esempio n. 2
0
 internal void FireFocusChanged(RowIdentifier oldFocusItem, RowIdentifier newFocusItem)
 {
     OnRowFocusChanged(new RowFocusChangedEventArgs(oldFocusItem, newFocusItem));
 }
Esempio n. 3
0
 public RowEventArgs(RowIdentifier row)
 {
     Row = row;
 }
Esempio n. 4
0
 public RowFocusChangedEventArgs(RowIdentifier oldFocus, RowIdentifier newFocus)
 {
     OldFocus = oldFocus;
     NewFocus = newFocus;
 }
Esempio n. 5
0
 /// <summary>
 /// Override this method if you want to change the expansion state of a grouped item.
 /// </summary>
 /// <param name="ri"></param>
 /// <param name="currentState"></param>
 public virtual void GetGroupedState(RowIdentifier ri, ref ListSection.GroupState currentState)
 {
 }
Esempio n. 6
0
 public RowFocusChangedEventArgs( RowIdentifier oldFocus, RowIdentifier newFocus )
 {
     OldFocus = oldFocus;
     NewFocus = newFocus;
 }
Esempio n. 7
0
 public RowEventArgs( RowIdentifier row )
 {
     Row = row;
 }
Esempio n. 8
0
 internal void FireFocusChanged( RowIdentifier oldFocusItem, RowIdentifier newFocusItem )
 {
     OnRowFocusChanged( new RowFocusChangedEventArgs( oldFocusItem, newFocusItem ) );
 }
Esempio n. 9
0
 /// <summary>
 /// Override this method if you want to change the expansion state of a grouped item.
 /// </summary>
 /// <param name="ri"></param>
 /// <param name="currentState"></param>
 public virtual void GetGroupedState( RowIdentifier ri, ref ListSection.GroupState currentState )
 {
 }