AutomationPeer for a RibbonTab
Inheritance: System.Windows.Automation.Peers.ItemsControlAutomationPeer
Exemplo n.º 1
0
        protected override string GetClassNameCore()
        {
            RibbonTabAutomationPeer wrapperPeer = GetWrapperPeer() as RibbonTabAutomationPeer;

            if (wrapperPeer != null)
            {
                return(wrapperPeer.GetClassName());
            }
            return(string.Empty);
        }
Exemplo n.º 2
0
        private RibbonTabAutomationPeer GetWrapperPeer()
        {
            RibbonTabAutomationPeer wrapperPeer = null;
            RibbonTab wrapper = GetWrapper();

            if (wrapper != null)
            {
                wrapperPeer = UIElementAutomationPeer.CreatePeerForElement(wrapper) as RibbonTabAutomationPeer;
            }
            return(wrapperPeer);
        }
Exemplo n.º 3
0
        public override object GetPattern(PatternInterface patternInterface)
        {
            object peer = base.GetPattern(patternInterface);

            if (patternInterface == PatternInterface.ExpandCollapse && OwningRibbon.IsMinimized)
            {
                peer = this;
            }

            if (patternInterface == PatternInterface.ScrollItem)
            {
                peer = this;
            }

            if (peer == null)
            {
                RibbonTabAutomationPeer wrapperPeer = GetWrapperPeer();
                if (wrapperPeer != null)
                {
                    peer = wrapperPeer.GetPattern(patternInterface);
                }
            }
            return(peer);
        }
 public RibbonGroupDataAutomationPeer(object item, RibbonTabAutomationPeer itemsControlPeer)
     : base(item, itemsControlPeer)
 {
 }
 public RibbonGroupDataAutomationPeer(object item, RibbonTabAutomationPeer itemsControlPeer)
     : base(item, itemsControlPeer)
 {
 }