Resharper to create an auto property when creating properties from XAML

If I have XAML code that uses DataContext, Resharper selects that there are problems when binding to properties that do not exist in this class and as part of the menu, you can select Create Property.

resharper 1

Then, Resharper will create the property in the class and ask you to specify the type of property.

Resharper 2

After you provide the type, you can insert a tab or press return, and the element is created, however you are left with NotImplementedException, and it does not allow you to change the property to the auto property. Is it possible to force Resharper to create at least the auto property at the same time?

+4
source share
1

, . Visual Studio . , ,

, .

0

Source: https://habr.com/ru/post/1525618/


All Articles