Hi,
The xamColorPicker holds several strings. Only 4 of them are configurable captions. How to localize the other text ressources?
Thanks in advance
You can configure the other captions using the code below:
XAML:
<Grid> <Grid.Resources> <Style TargetType="{x:Type igPrim:AdvancedColorShadePicker}"> <Style.Setters> <EventSetter Event="Loaded" Handler="acsp_Loaded"/> </Style.Setters> </Style> </Grid.Resources> <ig:XamColorPicker Width="100" Height="30" x:Name="cp"/> </Grid>
CodeBehind:
void acsp_Loaded(object sender, RoutedEventArgs e) { AdvancedColorShadePicker colorPicker = sender as AdvancedColorShadePicker; if (null != colorPicker) { colorPicker.OKCaption = "Okey"; colorPicker.RedCaption = "Select Red Color"; colorPicker.GreenCaption = "Select Green Color";
} }
Hope this helps!
Sorry, I'm not sure I follow:
a) I was referring to the type XamColorPicker and not AdvancedColorShadePicker
b) where would I find the namespace "igPrim"?
Could you please elaborate?
Thanks
Hi Vlad,
I have been trying to localize the captions in AdvancedColorShadePicker by following the approach in your previous post. But I see some options missing,
1. Title of the dialog
2. Title of the 3 TABs
Could you please let me know how to achieve the same
Thanks,
Poornima
Sorry, I don't follow. How exactly would I set that property in C# code? At what namespace would I find the ColorPickerDialog?
The DialogCaption is off the ColorPickerDialog
}">
="Hello World"/>
>
I'm leaving the reference number of the issue here in case anyone encounters this and wants to subscribe for status updates.
#61273: DialogCaption property is not available in XamColorPicker
Thank you for pointing this out.
I just got the confirmation as you placed a support ticket. I now understand that this property is just not available at this time. Thanks for clarification.