private void CloseDropDown(bool oldValue, bool newValue)
{
if(_popupHasOpened)
{
if(SelectionAdapter != null)
{
SelectionAdapter.SelectedItem = null;
}
if(DropDownPopup != null)
{
DropDownPopup.IsOpen = false;
}
#if SILVERLIGHT
OnDropDownClosed(new RoutedPropertyChangedEventArgs<bool>(oldValue, newValue));
#else
OnDropDownClosed(new RoutedPropertyChangedEventArgs<bool>(oldValue, newValue, DropDownClosedEvent));
#endif
}
}