コード例 #1
0
        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);
        }