Reputation: 11917
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?
Upvotes: 4
Views: 713
Reputation: 11917
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:
Search for "No Intellisense for StaticResource", and there is a submission to up-vote:
Upvotes: 3