Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ability to add resx file to a xaml by hand?

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support
View previous topic :: View next topic  
Author Message
bdwyer



Joined: 27 Aug 2012
Posts: 10

PostPosted: Tue Feb 26, 2013 4:40 pm    Post subject: Ability to add resx file to a xaml by hand? Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Feb 26, 2013 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group