Microsoft-ui-xaml: Proposal: Toast feature like Android toast

Created on 26 Apr 2019  路  14Comments  路  Source: microsoft/microsoft-ui-xaml

Proposal: Toast feature, just like Android toast.

Summary


See the bottom toast, uwp has no toast like this currently.
image

feature proposal team-Controls

All 14 comments

The Windows Community Toolkit comes with this kind of control. InAppNotification

image

https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/inappnotification

Perhaps what you want is a timer dismiss option for this control, or perhaps moving it from the toolkit to the official control library.

In addition to in-app notifications, the Windows Community Toolkit also has helpers for showing system-level toasts:

https://docs.microsoft.com/windows/uwp/design/shell/tiles-and-notifications/send-local-toast

You can also use the UWP toast APIs directly, but the Community Toolkit makes it easier.

Our 2.1 update also includes TeachingTip which can do this as well. See this section for something like what you want: https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/dialogs-and-flyouts/teaching-tip#non-targeted-tips

image

Sounds good

But teaching tip does not support a timer to auto close the tip

@hupo376787 thanks for the specifics on that, you're right that there is no timeout. Would you mind opening another issue to track that TeachingTip is missing a dismiss timeout? If not maybe @SavoySchuler can file it on your behalf?

On the other hand, system toasts auto-dismiss so maybe the recommendation should be to use a system toast if you want an ambient popup with timeout.

TeachingTip having a timeout was an idea discussed, but not implemented for Version 1. Maybe @SavoySchuler will be able to add that in the future

OK, thanks guys for your great work. Looking forward to this feature.

Hi, @hupo376787, I was just discussing with @mdtauk that I would be keen to open a TeachingTip V2 proposal if there were real app scenarios to drive it. Do you have one?

@SavoySchuler I think I remember discussing a timeout option with you, citing some old Windows Longhorn examples of a progress bar, on the message box, going down until the bubble/tip was dismissed.
image


However I think this particular proposal, may be better served with the more light-weight #913 Status Banner proposal which I think came from an internal Microsoft dev, so is likely to be made.

image

I once made a app which style and behavior almost like android, see gif

000

Hi, guys. It seems TeachingTip still can't disappear automaticaly without any user interaction as android toast behavior.
The IsLightDismissEnabled property still need user to interact.
Do you have any plans?

@hupo376787 There is a discussion on this in the TeachingTip v2 proposal here - https://github.com/microsoft/microsoft-ui-xaml/issues/638

Was this page helpful?
0 / 5 - 0 ratings