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
2395
Localization?
posted

Hi,

 

The xamColorPicker holds several strings. Only 4 of them are configurable captions. How to localize the other text ressources?

 

Thanks in advance

Parents
No Data
Reply
  • 30945
    Offline posted

    Hello Dierk,

     

    The ColorPickerDialog is in the Infragistics.Controls.Editors.Primitives namespace. You can change the caption of the ColorPickerDialog by adding the following style in Window’s Resources section in XAML as Darrell Kress mentioned:

    <Window.Resources>
        <Style TargetType="{x:Type igPrim:ColorPickerDialog}">
            <Setter Property="DialogCaption" Value="Hello World"/>
        </Style>
    </Window.Resources>
    

     

     

    
    

     

    If you prefer to use code behind adn the event handler for the Loaded event, you can add the style in code as follows:

    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        Style colorPickerDialogStyle = new Style(typeof(ColorPickerDialog));
        colorPickerDialogStyle.Setters.Add(
            new Setter(ColorPickerDialog.DialogCaptionProperty, "New Caprion String"));
    
        this.Resources.Add(typeof(ColorPickerDialog), colorPickerDialogStyle);
    }
    

     

    
    

     

    If you need any further assistance please do not hesitate to ask.

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

     

     

     

     

Children