Skip to content

WPF incompatibility (INPC006) #32

@OZ1

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)

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