{"id":15060002,"url":"https://github.com/andrewkeepcoding/ak.toolkit","last_synced_at":"2025-04-10T05:42:41.460Z","repository":{"id":39909731,"uuid":"482853950","full_name":"AndrewKeepCoding/AK.Toolkit","owner":"AndrewKeepCoding","description":"The AK.Toolkit will be a collection of controls, helpers, etc... stuff that I needed to use but couldn't find somewhere else.","archived":false,"fork":false,"pushed_at":"2024-04-15T12:41:52.000Z","size":1124,"stargazers_count":39,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-18T06:03:15.363Z","etag":null,"topics":["customcontrols","helpers","winui3"],"latest_commit_sha":null,"homepage":"","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/AndrewKeepCoding.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":"2022-04-18T13:19:22.000Z","updated_at":"2024-06-16T00:36:55.718Z","dependencies_parsed_at":"2024-02-15T16:31:18.954Z","dependency_job_id":"e0b66d1c-9368-4bd4-877a-cecbae13609b","html_url":"https://github.com/AndrewKeepCoding/AK.Toolkit","commit_stats":{"total_commits":92,"total_committers":3,"mean_commits":"30.666666666666668","dds":0.05434782608695654,"last_synced_commit":"a87030708930aa321b17c34e56eaece3bb1b7077"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewKeepCoding%2FAK.Toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewKeepCoding%2FAK.Toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewKeepCoding%2FAK.Toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewKeepCoding%2FAK.Toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewKeepCoding","download_url":"https://codeload.github.com/AndrewKeepCoding/AK.Toolkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166557,"owners_count":21058478,"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":["customcontrols","helpers","winui3"],"created_at":"2024-09-24T22:51:04.365Z","updated_at":"2025-04-10T05:42:41.442Z","avatar_url":"https://github.com/AndrewKeepCoding.png","language":"C#","readme":"# 🧰 AK.Toolkit\n\nThe AK.Toolkit will be a collection of controls, helpers, etc... stuff that I need but couldn't find somewhere else.\n\n## 🔵 WinUI 3\n\n### ⏺️ ButtonExtensions\n\n[🎬 YouTube](https://youtu.be/3PX2oLuqEqA?si=BCg9dpG2Oq-RvJHU)\n\nProvides additional features for the Button control:\n- PointerOverBackgroundLightnessFactor\n- PressedBackgroundLightnessFactor\n\n```xaml\n\u003cButton\n    toolkit:ButtonExtensions.PointerOverBackgroundLightnessFactor=\"1.2\"\n    toolkit:ButtonExtensions.PressedBackgroundLightnessFactor=\"0.8\"\n    Background=\"Blue\"\n    Click=\"Button_Click\"\n    Content=\"Click\" /\u003e\n```\n\n### 📜 RichTextBlockExtensions\n\nExtensions that make it easier to highlight `RichTextBlock`.\n\n```xaml\n\u003cButton\u003e\n    \u003cRichTextBlock\n        toolkit:RichTextBlockExtensions.HighlightingText=\"{x:Bind HighlightingText, Mode=OneWay}\"\n        toolkit:RichTextBlockExtensions.Text=\"Button\"\n        IsHitTestVisible=\"False\" /\u003e\n```\n\n![ScrollBar Extensions Annotations Screenshot](Assets/richtextblock-extensions-screenshot.png)\n\n\n### 💻 AutoCompleteTextBox\n\n[🎬 YouTube](https://youtu.be/G17jbGSXLnk)\n\nA TextBox control that shows a suggestion based on input.\nAutoCompleteTextBox shows a suggestion **inside** the TextBox control.\n\n```xaml\n\u003ctoolkit:AutoCompleteTextBox\n    IsSuggestionCaseSensitive=\"false\"\n    SuggestionForeground=\"HotPink\"\n    SuggestionPrefix=\"...\"\n    SuggestionSuffix=\" ? [Press Right]\"\n    SuggestionsSource=\"{x:Bind Suggestions, Mode=OneWay}\" /\u003e\n```\n\n![AutoCompleteTextBox Screenshot](Assets/auto-complete-textbox-sample-screenshot.png)\n\n### 🔢 NumberBoxEx\n\n[🎬 YouTube](https://youtu.be/ai-koyvgbWY)\n\nIn addition to the built-in `NumberBox`:\n\n- **NumberHorizontalAlignment** DependencyProperty\n- **IsDeleteButtonVisible** DependencyProperty\n\nComing soon:\n\n- Thousand separators\n  - Comma\n  - Space\n\n### ⚒️ ScrollBarExtensions.KeepExpanded\n\n[🎬 YouTube](https://youtu.be/8m82fXl0LKk)\n\nAn attached property that keeps `ScrollBars` expanded.\n\n```xaml\n\u003c!--  ScrollBar  --\u003e\n\u003cScrollBar toolkit:ScrollBarExtensions.KeepVerticalExpanded=\"True\" /\u003e\n\u003c!-- ScrollViewer  --\u003e\n\u003cScrollViewer\n    toolkit:ScrollBarExtensions.KeepHorizontalExpanded=\"True\"\n    toolkit:ScrollBarExtensions.KeepVerticalExpanded=\"True\"\u003e\n    \u003cItemsRepeater /\u003e\n\u003c/ScrollViewer\u003e\n\u003c!--  ListView  --\u003e\n\u003cListView toolkit:ScrollBarExtensions.KeepVerticalExpanded=\"True\" /\u003e\n\u003c!--  GridView  --\u003e\n\u003cGridView toolkit:ScrollBarExtensions.KeepVerticalExpanded=\"True\" /\u003e\n\u003c!-- NavigationView  --\u003e\n\u003cNavigationView toolkit:ScrollBarExtensions.KeepVerticalExpanded=\"True\" /\u003e\n```\n\n### ⚒️ ScrollBarExtensions.Annotations\n\n[🎬 YouTube](https://youtu.be/wa6_E_HpiMg)\n\nAn attached property that adds annotations to vertical `ScrollBars`.\n\nFirst, you need to create a collection of your annotations that implements ``IAnnotation`` or just use the built-in ``BasicAnnotation``.\n\n```csharp\npublic interface IAnnotation\n{\n    double Value { get; }\n\n    ValueType ValueType { get; }\n\n    Shape Shape { get; }\n\n    double LeftOffset { get; }\n}\n\npublic record BasicAnnotation : IAnnotation\n{\n    public double Value { get; }\n\n    public ValueType ValueType { get; set; }\n\n    public Shape Shape { get; private set; }\n\n    public double LeftOffset { get; set; }\n\n    public BasicAnnotation(double value, Shape shape)\n    {\n        Value = value;\n        Shape = shape;\n    }\n}\n```\n\nThen bind your annotations using ``ScrollBarExtensions.VerticalAnnotations`` attached property.\n\n```xaml\n\u003ccontrols:DataGrid\n    toolkit:ScrollBarExtensions.KeepVerticalExpanded=\"True\"\n    toolkit:ScrollBarExtensions.VerticalAnnotations=\"{x:Bind Annotations, Mode=OneWay}\"\n    ItemsSource=\"{x:Bind Users}\"\u003e\n```\n\n![ScrollBar Extensions Annotations Screenshot](Assets/scrollbar-extensions-annotations-screenshot.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewkeepcoding%2Fak.toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewkeepcoding%2Fak.toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewkeepcoding%2Fak.toolkit/lists"}