System.Windows.Controls.AutoCompleteBox.RaiseExpandCollapseAutomationEvent C# (CSharp) Метод

RaiseExpandCollapseAutomationEvent() приватный Метод

Raise an expand/collapse event through the automation peer.
private RaiseExpandCollapseAutomationEvent ( bool oldValue, bool newValue ) : void
oldValue bool The old value.
newValue bool The new value.
Результат void
        private void RaiseExpandCollapseAutomationEvent(bool oldValue, bool newValue)
        {
            AutoCompleteBoxAutomationPeer peer = UIElementAutomationPeer.FromElement(this) as AutoCompleteBoxAutomationPeer;
            if(peer != null)
            {
                peer.RaiseExpandCollapseAutomationEvent(oldValue, newValue);
            }
        }