private void OnUpdateVisualStates(EventArgs e) { EventHandler handler = UpdateVisualStates; if(handler != null) { handler(this, e); } }