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);
            }
        }