public void ToastMessage(string title, string message) { var toastitem = new ToastItem() { ToastTitle = title, ToastContent = new TextBlock() { Text = message, TextWrapping = TextWrapping.Wrap }, }; this.NewerNotifyItem = toastitem; }
private void AddNotifyItem(INotifyItem newItem) { if (newItem == null) { return; } waitingList.Add(newItem); if (NotifingItem == null) { UpdateToast(); } else { EnsureTimer(); } }