protected override bool IsControlElementCore() { AutomationPeer wrapperPeer = this.GetWrapperPeer(); if (wrapperPeer != null) { return(wrapperPeer.IsControlElement()); } return(true); }