Microsoft.Windows.Controls.Ribbon.RibbonButton.OnCreateAutomationPeer C# (CSharp) Method

OnCreateAutomationPeer() protected method

Get AutomationPeer for RibbonButton control
protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
return System.Windows.Automation.Peers.AutomationPeer
        protected override AutomationPeer OnCreateAutomationPeer()
        {
            return new RibbonButtonAutomationPeer(this);
        }