jakubbukaj
Joined: 07 Mar 2013 Posts: 8
|
Posted: Thu Mar 07, 2013 6:12 am Post subject: Custom localization of Margin is omitting Resx in XAML |
|
|
Hi,
I added to "Scan and Convert Properties" property Margin with checked Set default. In this case after scanning I am getting following code in my XAML:
Code: | Label x:Name="_lblPrijmeni" Content="{Resx _lblPrijmeni_Content}" Margin="{Key=_lblPrijmeni_Margin, DefaultValue='38,63,0,0'}" VerticalAlignment="Top" |
The keyword Resx in front of Key in Margin is missing and therefore code cannot be compiled.
If I check “Set ResXName” too. Following XAML is generated
Code: | Margin="{Resx ResxName=LocalizationTest.MainWindow, Key=_lblPrijmeni_Margin, DefaultValue='37,63,0,0'}" |
which can be compiled. But there is text “ResxName=LocalizationTest.MainWindow” which I would like to avoid (for better code reading) and replace it just by "Resx". How can I solve this issue?
Thanks,
VS2012 Prof, WPF project, Win 7 64bit |
|