BaconographyWP8.PlatformServices.NotificationService.CreateNotification C# (CSharp) Method

CreateNotification() public method

public CreateNotification ( string text ) : void
text string
return void
        public void CreateNotification(string text)
        {
            if (_scheduler == null)
                return;
            Task.Factory.StartNew(() =>
                {
                    ToastPrompt toast = new ToastPrompt();
                    toast.Title = "Baconography";
                    toast.Message = text;
                    toast.TextWrapping = System.Windows.TextWrapping.Wrap;
                    toast.ImageSource = new BitmapImage(new Uri("Assets\\ApplicationIconSmall.png", UriKind.RelativeOrAbsolute));
                    toast.Show();
                    
                }, System.Threading.CancellationToken.None, TaskCreationOptions.None, _scheduler); 
        }