.resw Localization can't correctly work #13488
-
I want to use the localization words with .resw files, but met an error. In XAML: <StackPanel Orientation="Vertical">
<TextBlock Loaded="TextBlock_Loaded" />
<TextBlock x:Uid="String2" />
<TextBlock x:Uid="/Resources/String2"/>
</StackPanel> Platforms:
In XAML: <StackPanel Orientation="Vertical">
<TextBlock Loaded="TextBlock_Loaded" />
<TextBlock x:Uid="String2" />
<TextBlock x:Uid="/Resources/String2"/>
</StackPanel> In he first TextBlock can' t work , the methos The second TextBlock can work . The third TextBlock can't work. I added more .resw files, use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Thanks for the report. Could you attach a repro sample that shows what you're trying to do? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use same resource for different elements e.g Button and TextBlock ? Since i have to add a property to a Resource in one case it will be TestString.Content and other TestString.Text would be nice if it worked without providing properties e.g just "TestString" |
Beta Was this translation helpful? Give feedback.
Thanks. Localization from XAML from a separate project file using a non-default resource file name requires prefixing with the
x:Uid
with the assembly name: