﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Mon, 18 Feb 2013 20:48:52 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Glad to hear that the snippet code helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our community site. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Mon, 18 Feb 2013 16:12:32 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>Hi Yudi,&lt;br /&gt;&lt;br /&gt;Thank you for sharing a small code snippet.&lt;br /&gt;I was doing it wrong... Anyway, it is now working as expected.&lt;br /&gt;&lt;br /&gt;I'll keep digging more into ClientUI.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Dave&lt;br /&gt;</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Mon, 18 Feb 2013 05:49:03 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I use the following approach to implement localization on the UXRibbonToolTipService.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Bind TooltipContent (also applicable for TooltipHeader or TooltipFooter) to the localized resource in the xml file.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;...
&amp;lt;RibbonButton Content="New Contact" MinimumSize="Medium" TooltipHeader="New Item"
              TooltipContent="{Binding Localization.Resource.TodayText}"
              TooltipImagePath="/Assets/Images/customers.png" KeyTipAccessText="N"
              Icon="/Assets/Images/Ribbon/Contacts/32/new_contact.png"
              LargeIcon="/Assets/Images/Ribbon/Contacts/32/new_contact.png" /&amp;gt;
...&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Modify the Tooltip parser method to handle the binding.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;private static void CreateRibbonTooltip(UIElement element, XElement x, DependencyProperty property)
{
    string content = ParseAttributeToString(x.Attribute("TooltipContent"));
    if (content.StartsWith("{Binding"))
    {
        Char[] splitIndicator = { ' ' };
        string[] splits = content.Substring(1, content.Length - 2).Split(splitIndicator);
        BindingOperations.SetBinding(element, UXRibbonToolTipService.ContentProperty, new Binding(splits.ElementAt(1)));
    }
    else
    {
        if (content != null &amp;amp;&amp;amp; content.Length &amp;gt; 0)
            UXRibbonToolTipService.SetContent(element, content);
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I have tested this solution on my local end. Please let me know your feedback whether this helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Thu, 14 Feb 2013 22:31:51 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>&lt;p&gt;Sure,&lt;/p&gt;&lt;p&gt;I meant to the RibbonOverviewData.xml, same as with the sample provided.&lt;/p&gt;
&lt;p&gt;Let me further explain, in the xml file, you can set the TooltipHeader property and so on. Like for example TooltipHeader=¨Sample¨. But, I see in the RibbonFactory that the Tooltip is implemented using the UXRibbonToolTipService.SetHeader().. How could I achieve the same Localization functionality like shown in your sample (using {Binding ...})?&lt;/p&gt;
&lt;p&gt;Or is this implemented in a different way?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Dave&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Thu, 14 Feb 2013 22:21:53 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Thank you for the prompt reply and glad to hear that the sent sample helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;About the question: how to implement it with the UXRibbonToolTipService SetHeader(), SetContent(), and SetFooter(), could you please let us know whether this related with the Binding in the RibbonFactory or to apply ClientUI Localization over the UXRibbonToolTipService?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Wed, 13 Feb 2013 22:28:22 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>&lt;p&gt;Thanks a lot Yudi, but you forgot to attach the sample... ;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I've tested it and it works! However, I'm wondering how to implement it with the UXRibbonToolTipService SetHeader(), SetContent() and SetFooter().&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Wed, 13 Feb 2013 22:23:17 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Sorry for the delay in sending this.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I created a simple WPF project of UXRibbon based on Intersoft ClientUI Ribbon Application project template. Within this project, I use the ClientUI Localization Manager to change the language.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Below is the quick review about the sample project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;This project is created using Intersoft ClientUI Ribbon Application project template.&lt;/span&gt;&lt;/p&gt;
&lt;div style="text-align: center;"&gt;&lt;img width="478" height="330" alt="Intersoft ClientUI Ribbon Application Project Template" src="http://www.intersoftpt.com/Community/Attachments/3539/RibbonProjectTemplate.jpg" /&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;A RibbonTabGroup, called “TestGroup”, is added into the RibbonOverviewData.xml file. TestGroup has four RibbonButton: English; Germany; France; and Spain. When user clicks Germany RibbonButton, the TestGroup’s Header is changed into Germany at runtime.&lt;/span&gt;&lt;/p&gt;
&lt;div style="text-align: center;"&gt;&lt;img width="478" height="330" alt="UXRibbon with Localization during runtime" src="http://www.intersoftpt.com/Community/Attachments/3539/RibbonWithLocalization.jpg" /&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;For more information about the ClientUI Localization Manager, please check the ClientUI Documentation under Localization Overview topic. I also added parser which handles the Binding on Header property.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please have the sample evaluated on your end and let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;&lt;strong&gt;Edited on February 13, 2013 10:30 PM&lt;br /&gt;Reason: Forget to attach sample project&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Thu, 07 Feb 2013 19:25:44 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>Yudi,&lt;br /&gt;&lt;br /&gt;Thank you! But it doesn't need to be too complete or complicated. If you can take the same sample of &lt;strong&gt;ClientUI Ribbon Application &lt;/strong&gt;and add only 2-3 translations to&lt;strong&gt; &lt;/strong&gt;the ApplicationMenu xml file and the code you use in RibbonFactory it will be enough.&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;Dave&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Tue, 05 Feb 2013 04:08:45 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I’ll need more time to prepare a simple sample of WebRibbon with localization and will update this thread with any news regarding the progress of the sample.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Be right back.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Mon, 04 Feb 2013 12:10:34 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>Hi Yudi,&lt;br /&gt;&lt;br /&gt;I'm actually using your suggested code, but when changing the language, the Header isn't changed as it does using xaml.&lt;br /&gt;I suppose it is because of the &lt;strong&gt;binding.Source&lt;/strong&gt;, I've in code as this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;binding.Source = new ClientUI_Ribbon_Application.Resources.AppResource().Resource;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;The first time the app is launched it retrieves the correct localization string, but the problem is when changed at runtime.&lt;br /&gt;&lt;br /&gt;Do you've any suggestions or code sample which could help me to achieve this?&lt;br /&gt;&lt;br /&gt;I'll greatly appreciate it!&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Dave&lt;br /&gt;
</description></item><item><title>Intersoft LocalizationManager with RibbonFactory</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Intersoft-LocalizationManager-with-RibbonFactory/</link><pubDate>Thu, 31 Jan 2013 02:42:41 GMT</pubDate><dc:creator>DaveDeSmet</dc:creator><description>&lt;p&gt;Dear Sir/Madam,&lt;/p&gt;
&lt;p&gt;I'm experimenting with the &lt;strong&gt;ClientUI Ribbon Application&lt;/strong&gt; sample and I really do like how it was handled the creation of the Ribbon using the RibbonFactory class and the xml data located in the Assets folder.&lt;/p&gt;
&lt;p&gt;What I'm curious is, how can I for example use Binding in the Text and Header properties of the controls.&lt;/p&gt;
&lt;p&gt;What I'm actually trying to do is to create something like this in the &lt;strong&gt;RibbonOverviewData.xml&lt;/strong&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;RibbonTabGroup Header="{Binding Resource.CreateNewHeader, Source={StaticResource ApplicationResource}}" ...&amp;gt;&lt;/pre&gt;
&lt;p&gt;And in the &lt;strong&gt;RibbonFactory&lt;/strong&gt; class create the proper bindings.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In the xaml is easy as pie, but in code I'm a bit lost.&lt;/p&gt;
&lt;p&gt;Would you mind to give me a hand with this?&lt;br /&gt;&lt;/p&gt;Thanks in advance!&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Dave&lt;br /&gt;</description></item></channel></rss>