protected override AutomationPeer OnCreateAutomationPeer() { if (_peer == null) { _peer = new BadgeButtonAutomationPeer(this); } return(_peer); }