Hi,
The xamColorPicker holds several strings. Only 4 of them are configurable captions. How to localize the other text ressources?
Thanks in advance
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
Has the AdvancedDialogCaption issue been resolved with the latest versioning? I'm still running 11.2 and I would rather upgrade to latest to be able to localize this easier than having to play around with styles myself.
Hello Matt,
Thank you for your reply. I have been looking into your question and the behavior that you are referring to is the design behavior for the xamColorPicker. In order to change the Advanced Dialog Window’s caption you can create a style for the ColorPickerDialog and set its DialogCaption property. I have submitted a new Product Idea for you, for the ability to set that property directly from the XamColorPicker. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12110054
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.