locked
Toast Works in Local Machine mode, but not in Simulator mode in Visual Studio 2012 RRS feed

  • Question

  • I added NotificationsExtensions.WinRT using the following:
    • Tools -> Library Package Manager -> Manage NuGet Packages for Solution…

    I added the code below.

    I see the Toast notification when running VS2012 in Local Machine mode, but do NOT see the Toast notification when running VS2012 in Simulator mode.

    Is there any way to get toast to work in Simulator mode?

    Thanks...

    private void ShowToast(string message)
    {
        // Create toast content in 01 format.
        IToastNotificationContent toastContent = null;
        IToastText01 templateContent = ToastContentFactory.CreateToastText01();
        templateContent.TextBodyWrap.Text = message;
        toastContent = templateContent;
    
        // Display toast.
        ToastNotification toast = toastContent.CreateNotification();
        ToastNotifier notifier = ToastNotificationManager.CreateToastNotifier();
        notifier.Show(toast);
    }


    Randy

    Thursday, October 24, 2013 7:49 PM

Answers