Detecting code references in UWP

Aug 6, 2015 at 11:59 PM
In a UWP I have keys defined like so:

TextblockUid.Text

Which is used in a text block with x:Uid=TextblockUid"

I'm having an issue in detecting code references with this as

x:Uid="($Key)"

Won't detect the references as they also contain the property name.

What's the best way to work around this?
Coordinator
Aug 13, 2015 at 3:04 PM
The best way would be to use <TextBlock Text="{x:Static p:Ressources.XYZ}" /> like in WPF.
This also gives you compiler errors if you are accessing a non-existing resource.