Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
Customized strings for Wintile
posted

Hello,

I'm currently using the new Wintile control.I have found some documentation within section Developers guide -> Assemblies --> Assembly Ressource strings --> WinMisc ressource strings concerning Wintile control.

In order to translate the customized strings for enlarging and normal buttons of my wintile control, I'm using the following code:

 

 

Dim l_ig_rcust As Infragistics.Shared.ResourceCustomizer = Infragistics.Win.Misc.Resources.Customizer

l_ig_rcust.SetCustomizedString(

"UltraTile_Normal_DefaultAction", "neuer Text")

l_ig_rcust.SetCustomizedString(

"UltraTile_Large_DefaultAction", "neuer Text2")

If I launch the application, the buttons are not translated, so the original text will be displayed. How else can I change the customized string?

Thanks,
Stephan

  • 3707
    Suggested Answer
    posted

    I didn't see the right strings in their documentation so I loaded up Reflector and found the correct ones. Here's how I did it in C#:

    Infragistics.Shared.ResourceCustomizer rc = Infragistics.Win.Misc.Resources.Customizer;
    rc.SetCustomizedString("UltraTileButtonToolTipStateChangeNormal", "Supersize Me");
    rc.SetCustomizedString("UltraTileButtonToolTipStateChangeLarge", "Normalsize Me");