Skip to content

BUG: CC0091 WPF event cannot be static #639

@huoyaoyuan

Description

@huoyaoyuan

For example Window_Loaded, it is being referenced by MainWindow.g.i.cs, like this:

((Showcase.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

And these events have to be instance methods, see: https://msdn.microsoft.com/en-us/library/cc221357%28v=VS.95%29.aspx

We could check for them being passed to RoutedEventHandler, and ignore them.

Original description:

Similar to #451
It seems that xaml haven't be resolved.
There may be information in .g.i.cs .

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions