Private and never used warnings for databinding to commands

Hi

Using the MVVM pattern I make a ICommand property for the view, that it databinds to in xaml. Resharper gives me a warning saying that the property can be made private and the get is never used.
Is there a way to make Resharper look for databindings in the xaml

1 comment

Hello Karsten,

There's no way to make ReSharper to look for data bindings in XAML files
at the moment. There's a bug-report regarding this problem in our tracker:
http://youtrack.jetbrains.net/issue/RSRP-182877 and you're welcome to monitor
its status. Meanwhile, you can mark the property with attribute.
In order to get the attribute implementation in your soluion, open ReSharper
| Options | Code Inspection | Code Annotations, click 'Copy default implementation
to clipboard' and then paste it to some new .cs file in your solution. Let
me know if this helps. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi

Using the MVVM pattern I make a ICommand property for the view, that
it databinds to in xaml. Resharper gives me a warning saying that the
property can be made private and the get is never used.

Is there a way to make Resharper look for databindings in the xaml

---
Original message URL:
http://devnet.jetbrains.net/message/5281601#5281601



0

Please sign in to leave a comment.