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

CreateNotificationWithNavigation() public method

public CreateNotificationWithNavigation ( string text, Type navTarget, object arguments ) : void
text string
navTarget System.Type
arguments object
return void
        public void CreateNotificationWithNavigation(string text, Type navTarget, object arguments)
        {
            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.Tap += (sender, obj) => ServiceLocator.Current.GetInstance<INavigationService>().Navigate(navTarget, arguments);
                toast.Show();

            }, System.Threading.CancellationToken.None, TaskCreationOptions.None, _scheduler);
        }