public async void Hide(object data = null) { ModalsManager.Remove(this); Animate(Windows.UI.Composition.AnimationDirection.Reverse, animationDuration); if (IsAnimationsEnabled) { await Task.Delay(animationDuration); } Closed?.Invoke(this, data); popup.IsOpen = false; }
public void Hide(object data = null) { ModalsManager.Remove(this); Closed?.Invoke(this, data); popup.IsOpen = false; }
public void Show() { ModalsManager.Add(this); popup.IsOpen = true; }