/// <summary> /// Shows the WindowX notification. /// </summary> public void Show() { // Check if we are closed if (!IsClosed) { return; } // Show the notification WindowXAnimations.FadeIn(this, WindowXAnimations.NormalAnimationDuration, WhenNotificationShow); }
/// <summary> /// Closes the WindowX notification. /// </summary> public void Close() { // Check if the notification is already closed if (IsClosed) { return; } // Stop the notification life if (_notificationToken != null) { _notificationToken.Cancel(); } if (_notificationLife != null) { _notificationLife.Dispose(); } // Hide the notification WindowXAnimations.FadeOut(this, WindowXAnimations.NormalAnimationDuration, WhenNotificationClose); }