예제 #1
0
        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);
        }
예제 #2
0
        public void Activate()
        {
            Activating?.Invoke(this, this);

            Canvas.SetZIndex(this, 1);
            VisualStateManager.GoToState(this, "Active", false);

            Activated?.Invoke(this, this);
        }
예제 #3
0
 protected virtual void OnActivating(EventArgs e)
 {
     Activating?.Invoke(this, e);
 }