[UWP] Android Like Toast Message in UWP

Md. Niaz Mahmud 171 Reputation points
2021-10-28T12:50:52.837+00:00

Hello, I am developing an uwp app, which is just like an android app, where there is some toast messages popping up on some action in the android app. Is there any way to show android like toast message in uwp app??? If not, what should be used in uwp instead of toast message scenerio of android?

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,180 questions
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 31,551 Reputation points Microsoft Vendor
    2021-10-29T02:04:59.087+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Maybe you could take a look at InAppNotification from the Windows Community Toolkit. It offers the ability to show local notifications in your application and The control should be placed where you want your notification to be displayed in the page, generally in the root grid.

    It's easy to use this control, for example:

    <controls:InAppNotification>  
        <!-- InAppNotification content -->  
    </controls:InAppNotification>  
    

    And there are different types that you could define. Like these:

    144754-image.png

    Or

    144735-image.png

    And on the top:

    144812-image.png

    You could preview it by downloading the Windows Community Toolkit Sample App in the Windows Store. And you could also check the source code in GitHub: WindowsCommunityToolkit GitHub.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Castorix31 81,361 Reputation points
    2021-10-28T14:36:16.147+00:00

    Did you see MSDN doc, at : Send a local toast notification from C# apps

    (and MS samples : Notifications)