The ColorPicker has an option to show recent colors selected by the user.
Unfortunately the RecentColorPalette Property is defined protected.
Is there a recommendation how to serialize the recently used colors in a UserSettings file?
Hi Horst,
Thank you for posting to Infragistics Community!
I have been looking into your question and after investigation I am afraid I can confirmt that indeed the XamColorPicker does not expose an API to access or modify the recent colors palette.
If you would like to see such API, my suggestion is to log a feature request in our WPF ideas site. Please, make sure to explain the context in which such feature is needed, as well as any relevant details.
As a workaround, I can suggest handling the SelectedColorChanged event and storing each selected color in a collection. There can be additional logic to only keep the last n selected colors.
Regarding how these values would be stored and serialized, I believe this would be an application-level matter.
If you require any further assistance on the matter, please, let me know.
Best regards, Bozhidara Pachilova Associate Software Developer
Hi Bozhidara,
thank you for your sugesion.
here to vote https://www.infragistics.com/community/ideas/i/ultimate-ui-for-wpf/xcamcolorpicker-recentcolorspalette-make-accessible