public override void OnApplyTemplate() { base.OnApplyTemplate(); this.ChangeVisualState(false); if (this.TemplateApplied != null) { this.TemplateApplied(this, new EventArgs()); } }