AutomationPeer for a RibbonTabHeader
Inheritance: System.Windows.Automation.Peers.FrameworkElementAutomationPeer
Example #1
0
        protected override string GetClassNameCore()
        {
            RibbonTabHeaderAutomationPeer wrapperPeer = GetWrapperPeer();

            if (wrapperPeer != null)
            {
                return(wrapperPeer.GetClassName());
            }
            return(string.Empty);
        }
Example #2
0
        private RibbonTabHeaderAutomationPeer GetWrapperPeer()
        {
            RibbonTabHeaderAutomationPeer wrapperPeer = null;
            RibbonTabHeader wrapper = GetWrapper();

            if (wrapper != null)
            {
                wrapperPeer = UIElementAutomationPeer.CreatePeerForElement(wrapper) as RibbonTabHeaderAutomationPeer;
            }
            return(wrapperPeer);
        }