Stefan
Stefan

Reputation: 12242

Resharper: how to suppress warning "Field xy is never used" in XAML

I want to suppress a warning in my xaml file. I applied the corresponding quick fix option to "Disable once warning by comment". However, the warning is still active. How do I correctly suppress the warning? I would like to keep the name because it tells something about the purpose of the element. (An alternative would be to remove the name and use a comment.) enter image description here

Edit

Upvotes: 0

Views: 584

Answers (1)

citizenmatt
citizenmatt

Reputation: 18573

This looks like an issue with an older version of ReSharper. You can update to the latest version of 8.x (8.2.3) or ReSharper 9 (the 9.2 EAP has just released EAP3). It appears to have fixed the issue.

Upvotes: 1

Related Questions