ToastNotifications icon indicating copy to clipboard operation
ToastNotifications copied to clipboard

Height

Open Roci-dev opened this issue 5 years ago • 1 comments

Is there anyway to change the height of notification?

Roci-dev avatar Jan 25 '21 04:01 Roci-dev

Hello Roci-dev,

Sorry for my bad englisch - but maybe the answer helps someone.

I had the same problem and it took me quiet long to figure out where the height was definied. The height of the toast message didn't fit for my application. So I found the MinHeight property in NotificationDisplayPart.xaml.cs at line 24. You could change this to your desired value and compile the solution.

As an alternative you can create a "CustonNotification", explained in this excellent tutorial: https://github.com/rafallopatka/ToastNotifications/blob/master-v2/Docs/CustomNotificatios.md

Then set in the constructor of the CustomDisplayPart.xaml.cs the MinHeigth value. image

The screenshot is for VB.NET but should also work for C#.

Best regards Florian

fstrahberger avatar Feb 12 '23 19:02 fstrahberger