Sometimes toast message doesn't disappear, it stays partly on screen and covers UI controls under

Jan 15, 2015 at 1:25 PM
Edited Jan 15, 2015 at 1:33 PM
Toast notifications are doing good job and look great, data binding works correctly. I just noticed one problem. Sometimes, toast message doesn't disappear from view, it partly stays inside it and UI controls that are under Toast message can't be used. Is there some property that needs to be set? Currently XAML code for toast messages is following:
<Style x:Key="ToastSuccessMessage" TargetType="{x:Type toastinet:Toastinet}">
    <Setter Property="Height" Value="100"></Setter>
    <Setter Property="Width" Value="200"></Setter>
    <Setter Property="Duration" Value="3"></Setter>
    <Setter Property="ShowLogo" Value="False"></Setter>
    <Setter Property="FontSize" Value="25"></Setter>
    <Setter Property="AnimationType" Value="RightToRight"></Setter>
    <Setter Property="Background" Value="Green"></Setter>
    <Setter Property="Foreground" Value="White"></Setter>
    <Setter Property="TextWrapping" Value="wrap"></Setter>
    <Setter Property="Canvas.ZIndex" Value="1"></Setter>
    <Setter Property="VerticalAlignment" Value="Top"></Setter>
    <Setter Property="HorizontalAlignment" Value="Right"></Setter>
Jan 16, 2015 at 1:17 PM

Thanks for your feedback.

Your settings sounds good but, what if you remove the Width property ?
If think that the problem come from this property.

I will investigate with your code sample and fix the problem.
I'll let you know very soon. (I plan a new publish this week end)
Jan 16, 2015 at 2:13 PM
Thank you for quick answer. I removed Width property but in that case toast notification is only about 10 pixels width, so it doesn't solve the problem. I don't want to stretch toaster ( <Setter Property="HorizontalAlignment" Value="Stretch"></Setter> ) because I don't want to occupy whole view with toast notification, only right upper corner.
Jan 16, 2015 at 3:29 PM
You're welcome.
I understand what you are trying to do.

The toast is not behind any element in your UI ? That meens I have to hide the toast "by myself", that meens the control itself have to hide its toast.
I will use a clip to do that.

Do not hesitate to add screenshot of the problem, it is usefull :)
Jan 22, 2015 at 12:29 PM
Sorry for late answer. Toast is in grid control. It is not behind any element of UI. This problem occurs sometimes, but I can't recognize pattern.
Jan 30, 2015 at 2:31 PM

Have you tried the latest version ? I published an update last week.
I made some change that will (maybe) fix your problem.

Keep me informed.
Feb 2, 2015 at 7:42 PM

I am having this same issue as well. (the toast occasionally doesn't completely go away, and blocks all the controls underneath it).

I am still seeing the issue after updating to your update (version 1.6).

It is hard to recreate, but it seems to happen more often when either resizing the window or clicking on a control while the toast is sliding off the screen.

Mar 18, 2015 at 8:56 AM

Count me in as well for the problem with the Toast message sometime not going away completely. We have also upgraded to version 1.6 and also don't use the Width property. I did also put a try block around the code of the closing so I could see any exceptions but no one was raised (or handled in the code itself.) We use the following XAML code:
    <toastinet:Toastinet x:Name="ApplicationConfirmationToaster"
                         Background="{DynamicResource ToastConformationBackground}"
                         Foreground="{DynamicResource ToastForeground}"
                         Message="{Binding Path=DataContext.ApplicationConfirmationMessage, ElementName=BillingToasterControl}" />
Indeed difficult to reproduce. We have disabled the possebility to resize the window so this might not be the issue.

Any help would be appriciated.