【问题标题】:resharper naming rules for xaml namespaces重新定义 xaml 命名空间的命名规则
【发布时间】:2010-05-03 14:27:17
【问题描述】:

在 Resharper 5.0 中,当我在 XAML 中使用我还没有 nampsace 包含的类型时,它会自动添加命名空间,如下所示:

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

如何强制它使用这样的缩写:

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

【问题讨论】:

    标签: xaml namespaces resharper naming


    【解决方案1】:

    正如本文“XAML Support Refresh in ReSharper 7.1”中提到的,改进了 XAML 支持,并修复了大量问题,包括命名空间问题。

    例如,这个相关的错误 (resharper5.x) "Code Issue "Redundant XAML namespace alias" is wrong if the namespace is used as a parameter for a markup extension." 已在 ReSharper 7.1 中修复。

    【讨论】:

      猜你喜欢
      • 2011-12-18
      • 2012-03-26
      • 1970-01-01
      • 1970-01-01
      • 2018-02-02
      • 1970-01-01
      • 2015-04-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多