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)); }
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); }