Set the Uid of both to be "ContactUs".
Have two resource entries
"ContactUs.Label" and "ContactUs.Text" which both have the same value.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to use the same string resource for 2 different components but they both appear blank. How can this problem be fixed?
Resources.resw
Main page
<AppBarButton Name="AppBarButtonContactUs" x:Uid="ContactUs.Label"/>
2nd page
<TextBlock x:Uid="ContactUs.Text" Style="{StaticResource HeaderTextBlockStyle}" />
Set the Uid of both to be "ContactUs".
Have two resource entries
"ContactUs.Label" and "ContactUs.Text" which both have the same value.
The reason of "Unable to resolve property 'Text' while processing properties for x:Uid 'ContactUs'." is that AppBarButton has x:Uid ContactUs but no property Text, the x:Uid must be different if the target property is different.
You can do like that:
<TextBlock x:Uid="ContactUs_Text" />
<AppBarButton x:Uid="ContactUs_Label" />
and in Resource.resw