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

NullreferenceException when Custom notification does not have a "CloseButton" #87

Open
kwaclaw opened this issue Mar 18, 2019 · 2 comments

Comments

@kwaclaw
Copy link

kwaclaw commented Mar 18, 2019

Library version

2.5.1

Expected behaviour

No exception

Actual behaviour

NullReferenceException

Steps to reproduce behaviour

Create custom notification that does not have a button named "CloseButton".
NullereferenceException happens when mouse enters notification window.
It happens in NotificationDisplayPart .OnMouseEnter, where btn.Visibility is set, since btn is null.

Code to reproduce behaviour

Questions

@rollibolly
Copy link

Hi. I have tried to add a Button named CloseButton. Exception is still there. Any workaround?

@Reec-3
Copy link

Reec-3 commented Jul 13, 2019

In your custom display part add Bind(_notification); to the constructor but you will also need the close button as this is referenced for some reason.

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

3 participants