public void Activate() { isActive = true; //call the OnStateActivated event to allow the user to add more logic to the activate function Activating?.Invoke(this, EventArgs.Empty); }
public void Activate() { Activating?.Invoke(this, this); Canvas.SetZIndex(this, 1); VisualStateManager.GoToState(this, "Active", false); Activated?.Invoke(this, this); }
protected virtual void OnActivating(EventArgs e) { Activating?.Invoke(this, e); }