Hi,
The xamColorPicker holds several strings. Only 4 of them are configurable captions. How to localize the other text ressources?
Thanks in advance
Where exactly do I put the style code in my xmal for the DialogCaption to change?
Thank for checking. I'm good for now and will get back to you in case.
Hello Dierk,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
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.
Sorry, I don't follow. How exactly would I set that property in C# code? At what namespace would I find the ColorPickerDialog?