protected override bool IsEnabledCore() { AutomationPeer wrapperPeer = this.GetWrapperPeer(); return((wrapperPeer == null) || wrapperPeer.IsEnabled()); }