/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="element">The object to compare with the current object.</param> /// <returns>True if the specified object is equal to the current object; otherwise, false.</returns> public override bool Equals(IUITechnologyElement element) { CommonControlElement other = element as CommonControlElement; if ((object)other != null) { return(InnerElement.Equals(other.InnerElement)); } return(false); }
/// <summary> /// Gets the original Uia element. /// </summary> /// <param name="element">The element.</param> /// <returns>The Uia element.</returns> public static IUITechnologyElement GetUiaElement(IUITechnologyElement element) { CommonControlElement te = element as CommonControlElement; if (te != null) { return(te.InnerElement); } return(null); }