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

[DevTools] Double subscribe/unsubscribe INotifyPropertyChanged #6838

Closed
workgroupengineering opened this issue Nov 2, 2021 · 0 comments · Fixed by #6839
Closed

[DevTools] Double subscribe/unsubscribe INotifyPropertyChanged #6838

workgroupengineering opened this issue Nov 2, 2021 · 0 comments · Fixed by #6839
Labels

Comments

@workgroupengineering
Copy link
Contributor

Describe the bug

if (SelectedEntity is INotifyPropertyChanged inpc1)
{
inpc1.PropertyChanged -= ControlPropertyChanged;
}
if (SelectedEntity is AvaloniaObject ao1)
{
ao1.PropertyChanged -= ControlPropertyChanged;
}

if (o is INotifyPropertyChanged inpc2)
{
inpc2.PropertyChanged += ControlPropertyChanged;
}
if (o is AvaloniaObject ao2)
{
ao2.PropertyChanged += ControlPropertyChanged;
}

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context
Add any other context about the problem here.

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

Successfully merging a pull request may close this issue.

1 participant