XAML intellisense not working for <staticresource>

时间:2016-08-31 17:26:32

标签: c# wpf xaml intellisense staticresource

I'm writing XAML/WPF and sometimes use object-element syntax to reference a static resource:

<StaticResource ResourceKey="theResourceKey"/>

This seems consistent with the StaticResource Markup Extension docs and is the only option I know of in some cases, e.g.:

<Transform3DGroup>
    <TranslateTransform3D OffsetX="0.5" OffsetY="0.5"/>
    <StaticResource ResourceKey="PlateScaleTransform"/>
</Transform3DGroup>

The problem is, I get no intellisense suggesting <StaticResource, but once I've typed it I do get intellisense suggesting ResourceKey="". Anyone have ideas why the former intellisense suggestion isn't working?

1 个答案:

答案 0 :(得分:1)

已经足够长了,我确信这是一个错误/遗漏。人们可以通过&#34;报告问题&#34;对问题报告进行投票。工具:

enter image description here

搜索&#34;没有针对StaticResource&#34;的智能感知,并且提交了向上投票:

enter image description here