/// <summary>
 ///  This is the function that Ensures that the selections are uptodate with
 ///  current listbox handle selections.
 /// </summary>
 internal void EnsureUpToDate()
 {
     if (_stateDirty)
     {
         _stateDirty = false;
         if (_owner.IsHandleCreated)
         {
             _owner.NativeUpdateSelection();
         }
     }
 }