I have an application in which I use a specific ResourceDictionary for my strings, and I need to duplicate the keys of this ResourceDictionary in the class as string constants. Although it’s easy to simply copy and paste, I expect about 350 lines of resources, and managing both files that have all the content is not an option.
I want to encode an application that will have a Key / Value grid for which the user will enter values, and this application will write in the Xaml file and in the constant .cs class. I have no problem with the .cs file, but is there a way to write to the xaml file without having to clear the file before writing the contents of the new file?
thank
source
share