Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Height #121

Open
Roci-dev opened this issue Jan 25, 2021 · 1 comment
Open

Height #121

Roci-dev opened this issue Jan 25, 2021 · 1 comment

Comments

@Roci-dev
Copy link

Is there anyway to change the height of notification?

@fstrahberger
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants