View previous topic :: View next topic |
Author |
Message |
bdwyer
Joined: 27 Aug 2012 Posts: 10
|
Posted: Tue Feb 26, 2013 4:40 pm Post subject: Ability to add resx file to a xaml by hand? |
|
|
Is it possible to add a resx file to a xaml (such that it appears under the xaml "folder" along with the code behind etc.)
The situation I have is a few xaml files that have no strings to localize within the xaml themselves, but some strings in the code behind that I want to localize. I'd like to keep things consistent with the other xamls and have my resx tied to the xaml directly.
Any ways to accomplish this, short of temporarily adding a string to my xaml and scanning? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Feb 26, 2013 11:15 pm Post subject: |
|
|
You can manually edit the project file in Notepad (or someother editor) and add a DependentUpon XML node for the additional RESX file. E.g.:
Code: | <EmbeddedResource Include="ExtraResource.resx">
<DependentUpon>TestWindow.xaml</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource> |
_________________ Infralution Support |
|
Back to top |
|
|
|