{"id":13640324,"url":"https://github.com/drogoganor/ColorPickerWPF","last_synced_at":"2025-04-20T02:33:21.298Z","repository":{"id":97254643,"uuid":"81445658","full_name":"drogoganor/ColorPickerWPF","owner":"drogoganor","description":"Simple color picker control for WPF","archived":false,"fork":false,"pushed_at":"2020-06-24T16:30:12.000Z","size":3733,"stargazers_count":99,"open_issues_count":6,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-03T13:04:56.906Z","etag":null,"topics":["color","color-picker","picker","picker-component","picker-library","wpf"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drogoganor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-09T11:58:10.000Z","updated_at":"2024-10-17T14:33:04.000Z","dependencies_parsed_at":"2024-01-14T11:15:06.152Z","dependency_job_id":null,"html_url":"https://github.com/drogoganor/ColorPickerWPF","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drogoganor%2FColorPickerWPF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drogoganor%2FColorPickerWPF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drogoganor%2FColorPickerWPF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drogoganor%2FColorPickerWPF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drogoganor","download_url":"https://codeload.github.com/drogoganor/ColorPickerWPF/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223816526,"owners_count":17207873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color","color-picker","picker","picker-component","picker-library","wpf"],"created_at":"2024-08-02T01:01:10.063Z","updated_at":"2024-11-09T10:31:06.457Z","avatar_url":"https://github.com/drogoganor.png","language":"C#","funding_links":[],"categories":["UI Controls"],"sub_categories":["Individual Controls"],"readme":"# ColorPickerWPF\n\nA simple WPF color picker control for .NET 4.5.2 licensed under MIT. Contains two color gradient images to sample from, and custom palette support.\n\n![screenshot](https://raw.githubusercontent.com/drogoganor/ColorPickerWPF/master/images/Picker1.png)\n\nYou can invoke it as a dialog using: \n\n`Color color;`\n\n`bool ok = ColorPickerWindow.ShowDialog(out color);`\n\nOr use the user control itself in your application: `ColorPickerWPF.ColorPickerControl`\n\n![screenshot](https://raw.githubusercontent.com/drogoganor/ColorPickerWPF/master/images/Picker2.png)\n\nThe user can define their own palette by selecting a color and ctrl+clicking a swatch in the custom colors section (lower right).\n\nThe custom palette can be saved to an XML file in the application folder or loaded from the same. \n\nThe dialog won't load the custom palette automatically by default, but you can tell it to with the optional flags to `ColorPickerWindow.ShowDialog([...], ColorPickerDialogOptions flags, string customPaletteName)`\n\nYou can specify to show the simple (collapsed) view with `flags = ColorPickerDialogOptions.SimpleView`\n\nOr you can load the default palette file (specified in the app.config setting DefaultColorPaletteFilename) with `flags = ColorPickerDialogOptions.LoadCustomPalette`.\n\nOr both using `flags = ColorPickerDialogOptions.SimpleView | ColorPickerDialogOptions.LoadCustomPalette`\n\nFinally, you can specify a palette filename to load instead of the default with the final optional argument `string customPaletteName`\n\nAn example showing the simple view and loading a custom palette file:\n\n`ColorPickerWindow.ShowDialog(out color, ColorPickerDialogOptions.SimpleView | ColorPickerDialogOptions.LoadCustomPalette, \"MyPalette.xml\");`\n\nThis would show the dialog in simple view, and load the palette file \"MyPalette.xml\".\n\nIf you are using the `ColorPickerControl` instead of the dialog, you can load custom palettes with: `LoadDefaultCustomPalette()` or `LoadCustomPalette(string filename)`.\n\nThe palette file, default \"ColorPalette.xml\", contains both the custom palette colors and the inbuilt colors. You can create your own inbuilt palette if you create an instance of `ColorPickerWPF.Code.ColorPalette`, populate its data accordingly, and save to file using `ColorPalette.SaveToXml(string filename)`. You can then distribute your application with this custom palette file.\n\nUnfortunately there is no mechanism for customizing the color gradient sample images at this time, or indeed any other customization. If you require further customization I recommend cloning the repo and adding ColorPickerWPF to your solution.\n\n[ColorPickerWPF on Nuget Gallery](https://www.nuget.org/packages/ColorPickerWPF)\n\n## Thanks to\n\n[Fatcow Icons](http://www.fatcow.com/free-icons) for the dialog window icon.\n\n[WriteableBitmapEx](https://github.com/teichgraf/WriteableBitmapEx/) for image manipulation code.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrogoganor%2FColorPickerWPF","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrogoganor%2FColorPickerWPF","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrogoganor%2FColorPickerWPF/lists"}