{"id":48520898,"url":"https://github.com/dady8889/adornerbehavior","last_synced_at":"2026-04-07T21:00:59.670Z","repository":{"id":143059401,"uuid":"358991573","full_name":"dady8889/AdornerBehavior","owner":"dady8889","description":"Allows you to easily define adorners in XAML, with no code behind required.","archived":false,"fork":false,"pushed_at":"2021-04-20T21:16:12.000Z","size":110,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T16:49:25.531Z","etag":null,"topics":["adorner","adornment","behavior","csharp","library","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dady8889.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-17T22:04:13.000Z","updated_at":"2023-11-08T10:18:49.000Z","dependencies_parsed_at":"2026-04-07T21:00:33.615Z","dependency_job_id":null,"html_url":"https://github.com/dady8889/AdornerBehavior","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dady8889/AdornerBehavior","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dady8889%2FAdornerBehavior","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dady8889%2FAdornerBehavior/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dady8889%2FAdornerBehavior/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dady8889%2FAdornerBehavior/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dady8889","download_url":"https://codeload.github.com/dady8889/AdornerBehavior/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dady8889%2FAdornerBehavior/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31528751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["adorner","adornment","behavior","csharp","library","wpf"],"created_at":"2026-04-07T21:00:23.549Z","updated_at":"2026-04-07T21:00:59.650Z","avatar_url":"https://github.com/dady8889.png","language":"C#","readme":"# AdornerBehavior\nAdorner Behavior by wuijong and Ashley Davis.  \nThis is a fixed and improved version viable for use in the modern world.  \nAllows you to easily define adorners in XAML, with no code behind required.\n\n## Changes\n* Built against .NET Framework 4.6.1 and .NET Core 3.1.\n* Fixed bugs and memory leaks.\n* Removed single child only variant.\n* Adorner collection does not need an encapsulating array.\n* The codebase was refactored and cleaned.\n* New test app.\n* The naming of functions was changed to better reflect the usage.\n* Position of adorners are implicitly set to be inside the adorning control.\n* Adorner collection implements INotifyCollectionChanged, which allows manipulation at runtime.\n\n## Usage\nCheck out the TestApp Project or the original [article](https://www.codeproject.com/Articles/123638/A-Resusable-Attached-Behavior-for-Defining-Adorner).\n\n## Quick Example\nFirst, define the AdornerBehavior.Adorners collection for the adorning control.\nThen, you can either set the AdornerBehavior.IsEnabled property to True on the adorning control to show the adorners,\nor you can bind it's value to some code behind and define a more complex behavior. Both approaches are shown in the Test App.\n```xaml\n\u003cWindow xmlns:ab=\"clr-namespace:AdornerBehavior;assembly=AdornerBehavior\"\u003e\n    ...\n    \u003cAdornerDecorator\u003e\n        \u003cRectangle Width=\"50\"\n                   Height=\"50\"\n                   ab:AdornerBehavior.IsEnabled=\"True\"\u003e\n            \u003cab:AdornerBehavior.Adorners\u003e\n                \u003cEllipse Width=\"15\"\n                         Height=\"15\"\n                         HorizontalAlignment=\"Left\"\n                         ab:AdornerBehavior.HorizontalPlacement=\"Across\"\n                         Stroke=\"Green\" /\u003e\n                ...\n            \u003c/ab:AdornerBehavior.Adorners\u003e\n        \u003c/Rectangle\u003e\n    \u003c/AdornerDecorator\u003e\n    ...\n\u003c/Window\u003e\n```\n\n## Showcase\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"TestAppShowcase.gif\"\u003e\n\u003c/p\u003e\n\n## Disclaimer\nThe code **was not tested** thorougly, and probably **is not** suitable for use in production.\n\nI am open to suggestions and PRs.\n\n## Licenses\nOriginal work was licensed under CPOL, however there isn't much left of the original code.  \nTherefore, I am giving my code to the Public Domain.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdady8889%2Fadornerbehavior","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdady8889%2Fadornerbehavior","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdady8889%2Fadornerbehavior/lists"}