Localizable attribute in compact framework

D

Doug Crawford

With .NET CF I can set the Localizable property for a form to true.
Then most sub-controls support localization. Except I have a custom
control with some public properties that I also want localized. Is
there any way to localize my custom properties using something like the
[Localizable(true)] attribute which is available on the full desktop
framework?
 
D

Doug Crawford

I figured out how to modify the DesignTimeAttributes.xmta file in order
to set the Localizable property using something like:

<Class Name="Intelight.MaxTime.Display.Screens.BaseScreen">
<DesktopCompatible>true</DesktopCompatible>
<Property Name="Title">
<Localizable>true</Localizable>
</Property>
</Class>

This works fine for simple properties. But if the property is an array
of strings there are problems. I can add values to the array in the
designer and see the base64 encoded value added to the resx file. But,
when I run the application on the device I get an exception when
ApplyResources is called.

Has anybody successfully added an array of strings to the resx file via
a class property in the designer?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top