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

Crash when IconVisibility is set to False #1

Open
Punkster812 opened this issue Jun 13, 2016 · 1 comment
Open

Crash when IconVisibility is set to False #1

Punkster812 opened this issue Jun 13, 2016 · 1 comment

Comments

@Punkster812
Copy link

Found this and exactly what I was looking for, so thanks.

When you have the IconVisibility="False", the code deletes the first column every time the AlertBarWpf is displayed. So the first time it runs it does what it's supposed to; removes the icon. The next time the text is shown where the icon would go. Third time the code executes, it throws an exception because there is no more columns to remove.

The line with the issue is this:
grdParent.ColumnDefinitions.RemoveAt(0);

@FroggieFrog
Copy link

I fixed this in my fork: https://github.com/FroggieFrog/AlertBarWpf

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