protected override string GetAutomationIdCore()
        {
            AutomationPeer wrapperPeer  = this.GetWrapperPeer();
            string         automationId = null;

            if (wrapperPeer != null)
            {
                automationId = wrapperPeer.GetAutomationId();
            }

            if (!string.IsNullOrEmpty(automationId))
            {
                return(automationId);
            }

            return("Row_" + this.Index.ToString(CultureInfo.InvariantCulture));
        }
Exemplo n.º 2
0
        protected override string GetAutomationIdCore()
        {
            AutomationPeer wrapperPeer  = this.GetWrapperPeer();
            string         automationId = null;

            if (wrapperPeer != null)
            {
                automationId = wrapperPeer.GetAutomationId();
            }

            if (automationId == null)
            {
                automationId = string.Empty;
            }

            return(automationId);
        }