WDE | Show Toaster custom

Hello to everyone,
I’m working on WDE (8.5) and trying to show a custom toaster after an event (the event itself is not important). The toaster should show just a message to user and disappear after a while without any interaction by user. I’m looking online for some examples about that, but finding WDE code online is a very difficult task and the documentation I have is very poor.
Hope someone can help me.

In case you just need to show toaster based on your custom trigger, you can use AlertEvent object and publish it via EventAggregator. Example below:


var info = new AlertInformation("Public")
                {
                    Id = message,
                    Severity = SeverityType.Information
                };
ContainerAccessPoint.Container.Resolve<IEventAggregator>().GetEvent<AlertEvent>().Publish(info);

This is just what I was looking for. Thank you!!!

Can you later post a screenshot on how this endup being shown at WDE?

Hi,

here we have how the “AlertInformation” appears.


https://i.ibb.co/wccrKQ4/Immagine.png

BR

  1. Awesome! Thanks!