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
Hey Krasimir,
I need to show xamColorPicker's ColorPalettes dropdown on right click of textbox. How can I achieve this. I this below code, but it did not help.
private void txtPositiveValue_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e) { xamColorPicker1.ContextMenu.Visibility = Visibility.Visible; }
Thanks,
Shakti
Again, you would set the IsDropDownOpen property