This project has moved and is read-only. For the latest updates, please go here.

Detecting code references in UWP

Aug 7, 2015 at 12:59 AM
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?
Aug 13, 2015 at 4: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.