{"id":23062198,"url":"https://github.com/dotnet9/avaloniaextensions","last_synced_at":"2025-08-15T08:33:26.127Z","repository":{"id":253132497,"uuid":"842511475","full_name":"dotnet9/AvaloniaExtensions","owner":"dotnet9","description":"Some syntactic sugar for Avalonia UI development.","archived":false,"fork":false,"pushed_at":"2024-12-12T00:51:55.000Z","size":348,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-12T01:34:40.384Z","etag":null,"topics":[],"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/dotnet9.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}},"created_at":"2024-08-14T13:56:59.000Z","updated_at":"2024-12-12T00:51:59.000Z","dependencies_parsed_at":"2024-11-13T06:22:57.444Z","dependency_job_id":"2998d348-0f4f-411a-820e-95d8f7d97d51","html_url":"https://github.com/dotnet9/AvaloniaExtensions","commit_stats":null,"previous_names":["dotnet9/avaloniaextensions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet9%2FAvaloniaExtensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet9%2FAvaloniaExtensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet9%2FAvaloniaExtensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet9%2FAvaloniaExtensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotnet9","download_url":"https://codeload.github.com/dotnet9/AvaloniaExtensions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229903400,"owners_count":18142050,"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":[],"created_at":"2024-12-16T03:25:03.934Z","updated_at":"2025-08-15T08:33:26.109Z","avatar_url":"https://github.com/dotnet9.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AvaloniaExtensions\n\nEnglish | [简体中文](README.zh-CN.md)\n\nA syntactic sugar library that brings convenience to Avalonia UI development, aiming to enhance development efficiency and experience by providing additional functionality and simplifying common operations.\n\n## Install\n\n```bash\nInstall-Package AvaloniaExtensions.Axaml\n```\n\n## I18n\n\nhttps://github.com/dotnet9/Lang.Avalonia\n\n## If\n\nUsing the Conditional expression in AXAML.\n\n```axaml\n\u003cTextBlock Text=\"{markup:If Condition={Binding Status}, True=Running, False=NotRunning}\" /\u003e\n\u003cTextBlock Text=\"{markup:If {Binding Status}, {markup:I18n {x:Static l:Language.Running}}, {markup:I18n {x:Static l:Language.NotRunning}}}\" /\u003e\n```\n\n## Converter Extensions\n\n### IfConditionConverter\n\n```axaml\n\u003cmarkup:IfConditionConverter x:Key=\"StatusConditionConverter\"\u003e\n            \u003cmarkup:IfConditionConverter.True\u003e\n                \u003cTextBlock Foreground=\"Green\" Text=\"{markup:I18n {x:Static l:Language.Running}}\" /\u003e\n            \u003c/markup:IfConditionConverter.True\u003e\n            \u003cmarkup:IfConditionConverter.False\u003e\n                \u003cTextBlock Foreground=\"DarkOrange\" Text=\"{markup:I18n {x:Static l:Language.NotRunning}}\" /\u003e\n            \u003c/markup:IfConditionConverter.False\u003e\n        \u003c/markup:IfConditionConverter\u003e\n```\n\n```axaml\n\u003cContentControl Content=\"{Binding Status, Converter={StaticResource StatusConditionConverter}}\" /\u003e\n```\n\n## Thanks\n\nTaken from open source, contributed to open source. The development of this library was inspired and aided by the following open-source projects or articles:\n\n- WpfExtensions: [https://github.com/DingpingZhang/WpfExtensions](https://github.com/DingpingZhang/WpfExtensions)\n- I18N：[https://github.com/Antelcat/I18N](https://github.com/Antelcat/I18N)\n- WPF或Avalonia使用tt模板和resx文件实现国际化：[https://blog.csdn.net/eyupaopao/article/details/136638194](https://blog.csdn.net/eyupaopao/article/details/136638194)\n\nSpecial thanks to the contributors of these projects. Their efforts have provided valuable references and assistance for the development of AvaloniaExtensions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet9%2Favaloniaextensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotnet9%2Favaloniaextensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet9%2Favaloniaextensions/lists"}