JVimes JVimes - 1 month ago 13
C# Question

XAML intellisense not working for <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?

Answer

It has been long enough, I'm convinced it's a bug/omission. People can up-vote the problem report via the "Report a Problem" tool:

enter image description here

Search for "No Intellisense for StaticResource", and there is a submission to up-vote:

enter image description here