You cannot use ShellToast while the application is a priority application. It is designed to be called from a background service, while the application is not the primary application.
If you want UX to look like UTX, use the Coding4fun toolkit . ToastPrompt. Here is 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 piece of code shows the following:

Justinangel
source share