开发者

resharper naming rules for xaml namespaces

开发者 https://www.devze.com 2022-12-28 19:07 出处:网络
In Resharper 5.0 when I use a type in XAML that I don not have a nampsace include for yet, it automatically adds the namespace as follows:

In Resharper 5.0 when I use a type in XAML that I don not have a nampsace include for yet, it automatically adds the namespace as follows:

xmlns:ViewModel="clr-开发者_运维百科namespace:MyNameSpace.ViewModel"

How can I force it to use abreviations like this:

xmlns:vm="clr-namespace:MyNameSpace.ViewModel"


As mentioned in this article "XAML Support Refresh in ReSharper 7.1", the XAML support is improved, and fix a large number of issue, including ones for namespace.

For instance, this related bug (resharper5.x) "Code Issue "Redundant XAML namespace alias" is wrong if the namespace is used as a parameter for a markup extension." has been fixed in ReSharper 7.1.

0

精彩评论

暂无评论...
验证码 换一张
取 消