private void TryNextDisplayNotication() { if (NoticationRequestQueue.TryDequeue(out var payload)) { _CurrentNotication = payload; LiteNotification.DataContext = payload; LiteNotification.ShowDismissButton = payload.IsShowDismissButton; LiteNotification.Show((int)(payload.ShowDuration ?? DefaultShowDuration).TotalMilliseconds); } }
private void TryNextDisplayNotication() { // only show Active Window if (_lastActivationState == Windows.UI.Core.CoreWindowActivationState.Deactivated) { NoticationRequestQueue.Clear(); return; } if (NoticationRequestQueue.TryDequeue(out var payload)) { _CurrentNotication = payload; LiteNotification.DataContext = payload; LiteNotification.ShowDismissButton = payload.IsShowDismissButton; LiteNotification.Show((int)(payload.ShowDuration ?? DefaultShowDuration).TotalMilliseconds); } }
private void TryNextDisplayNotication() { // only show Active Window if (_CurrentActiveWindowUIContextService.UIContext != UIContext) { NoticationRequestQueue.Clear(); return; } if (NoticationRequestQueue.TryDequeue(out var payload)) { if (payload == null) { return; } _CurrentNotication = payload; LiteNotification.DataContext = payload; LiteNotification.ShowDismissButton = payload.IsShowDismissButton; LiteNotification.Show((int)(payload.ShowDuration ?? DefaultShowDuration).TotalMilliseconds); } }