Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9040139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:54:40+00:00 2026-06-16T09:54:40+00:00

In my application I want to notify the user with the ShellToast . Just

  • 0

In my application I want to notify the user with the ShellToast.

Just by running…

var toast = new ShellToast
{
    Title = "Nom nom nom!",
    Content = "More! More! Keep feeding me!",
};
toast.Show();

…makes nothing happen, and as I understand it needs to be run from a ScheduledTaskAgent. But how do I run this on command, and make sure it only run once?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:54:41+00:00Added an answer on June 16, 2026 at 9:54 am

    You can’t use a ShellToast while the app is the foreground app. It’s meant to be invoked from a background service while the app isn’t the foreground app.

    If you want to have a UX similar to that of ShellToast use the Coding4fun toolkit ToastPrompt control. Here’s a code snippet showing how to use it:

        private void ToastWrapWithImgAndTitleClick(object sender, RoutedEventArgs e)
        {
            var toast = GetToastWithImgAndTitle();
            toast.TextWrapping = TextWrapping.Wrap;
    
            toast.Show();
        }
    
        private static ToastPrompt GetToastWithImgAndTitle()
        {
            return new ToastPrompt
            {
                Title = "With Image",
                TextOrientation = System.Windows.Controls.Orientation.Vertical,
                Message = LongText,
                ImageSource = new BitmapImage(new Uri("../../ApplicationIcon.png", UriKind.RelativeOrAbsolute))
            };
        }
    

    Running this code snippet shows the following:

    ToastPrompt control with image

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application, I want to notify a user, when he/she is mentioned in
If I have an asp.net application, and I want to notify the user when
I want to notify the user that my application wants to start an elevated
I'm developing wp7 Mango application. I run PeriodicTask and want to notify user according
I have an application which spawns a new thread when a user asks for
I want to create an application in android in which the user selects a
I want to use in my wpf aplication notify icon (with .dll library in
I want to write a web application and want to use Ruby. I have
I want to create a Java Desktop Application and want to employ some mechanism
In my application I want to send notifications to users through their pidgin internet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.