System.Windows.Controls.AutoCompleteBox.OpenDropDown C# (CSharp) Méthode

OpenDropDown() private méthode

Private method that directly opens the popup, checks the expander button, and then fires the Opened event.
private OpenDropDown ( bool oldValue, bool newValue ) : void
oldValue bool The old value.
newValue bool The new value.
Résultat void
        private void OpenDropDown(bool oldValue, bool newValue)
        {
            if(DropDownPopup != null)
            {
                DropDownPopup.IsOpen = true;
            }
            _popupHasOpened = true;
#if SILVERLIGHT
            OnDropDownOpened(new RoutedPropertyChangedEventArgs<bool>(oldValue, newValue));
#else
            OnDropDownOpened(new RoutedPropertyChangedEventArgs<bool>(oldValue, newValue, DropDownOpenedEvent));
#endif
        }