Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
XCamColorPicker RecentColorsPalette serialization
posted

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?

Parents
  • 2640
    Offline posted

    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

Reply Children
No Data