This is a Localization issue.
I have a XAML for a dialog and I changed some grid column width definition which was set to 120 to be Auto - from:
<ColumnDefinition Width="120"/>
To:
<ColumnDefinition Width="Auto" MinWidth="120"/>
When I set my application to Spanish (for example) and then build the DLL I get MyApp.dll, while the changes are not reflected in the dialog at runtime. However when I move back to English the changes are reflected.
I proved this to my self by setting the width to 200 and seeing that it was only reflected in English.
After some investigation, I extracted the Spanish MyApp.Resource.dll (yes it is a zipped file).
In it I found a file named .text and managed to recognize some tags that pointed directly to my original XAML definitions:
E.g. ColumnDefinitions ¦ÿ $ óÿ120 or 0,4,0,0 which matches the margin I use and other 'proofs'.
From this I understood that the resource dll contains the compiled BAML of the XAML.
My questions:
- Is it possible to avoid entering the BAML into the resource dll? - I would expect the dialog layout to be in the resource DLL only when the layout is not the same between languages.
- Is it possible to just have the string table of the different language in the resource dll?
My actual problem is that I have no way of generating the MyApp.Resource.dll and see that my changes are reflected correctly also in other languages, since it is done by a third party.