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));
        }
예제 #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);
        }