Ejemplo n.º 1
0
        public void ToastMessage(string title, string message)
        {
            var toastitem = new ToastItem()
            {
                ToastTitle   = title,
                ToastContent = new TextBlock()
                {
                    Text         = message,
                    TextWrapping = TextWrapping.Wrap
                },
            };

            this.NewerNotifyItem = toastitem;
        }
Ejemplo n.º 2
0
        private void AddNotifyItem(INotifyItem newItem)
        {
            if (newItem == null)
            {
                return;
            }
            waitingList.Add(newItem);

            if (NotifingItem == null)
            {
                UpdateToast();
            }
            else
            {
                EnsureTimer();
            }
        }