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
40
Tab Localization and Branding from ASP.NET and Windows Forms
posted

The client is requesting a localization solution to using Tabs in the Infragistics Ultimate UI for WPF controls.

Previously they have released the layouts Tab using your controls from ASP.NET and Windows Forms.

Depending on local data would have a different Tab list layout in their application.

The local office is from Japan, they would need Japanese localization solution to WPF but based on their country's user in the Windows Application and ASP.NET Web Application experience.

Since the branding that is run on WPF need to match the same look and feel from both previous platforms, the developers need an inheritance solution for dynamic localization Tab layouts.

Do you have an inherited sample solution written in C# that would provide dynamic Tab layout lists that are different in Japan and outside of the country?

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Duane,

    My team and I have done an initial review of this forum thread, and by an “inherited sample solution” in this case, I am under the impression that you are looking to be able to reuse the code that you used for the Windows Forms or ASP.NET layouts that you have previously released. If my impression in this case is incorrect, please let me know.

    Continuing from the above impression, the WPF XamTabControl does not share its code with the Windows Forms UltraTabControl, but it is still possible to host Windows Forms controls within a WPF application if you wish to go that route. There is information on how to do that here: https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf?view=netframeworkdesktop-4.8. This would potentially allow you to reuse the code you have written for the Windows Forms solution that you mentioned within a WPF application.

    Regarding having a dynamic Tab layout list that is different in Japan and outside of the country, something you could do to achieve this would be to add the tabs dynamically based on the static CultureInfo.CurrentCulture as this will be pulled from the system information of the machine that the application is running on. For example, you could do something like the following:

    CultureInfo info = CultureInfo.CurrentCulture;
    if (info.IetfLanguageTag.Contains("jp"))
    {
         //Japanese localization - add tabs for Japanese culture
    }

    The part I’m unsure about with your original description is whether or not the tab list itself is going to change, or if you simply want the headers of the tabs to be localized when the application is run in other locales? If you are looking for the headers of the tabs to be localized, it should be possible to do this using Resource Strings using the methods described here: https://jeremybytes.blogspot.com/2013/07/changing-culture-in-wpf.html.

    I hope this helps. Please let me know if you have any other questions or concerns on this matter.

Children