Skip to content

WPF incompatibility (INPC006) #32

Description

@OZ1

Description
I get INPC006 when used inside Window derived class:
warning INPC006: Found one or more methods called 'OnPropertyChanged' to raise the PropertyChanged event, but they had an unrecognised signatures or were inaccessible. No PropertyChanged events will be raised from this type
warning CS0067: Событие "MainWindow.PropertyChanged" никогда не используется.

To Reproduce
Create WPF project.
Add any [Notify] field to MainWindow.xaml.cs.
Compile.

Version Info

  • PropertyChanged.SourceGenerator version: 1.0.6
  • Roslyn Version: "4.4.0-3.22518.13 (7856a68c)". Версия языка: 10.0.

Additional Info
class Window is derived from DependencyObject which contains protected virtual void OnPropertyChanged(DependencyPropertyChangedEventArgs e)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions