{"id":19099387,"url":"https://github.com/TheCodeTraveler/HelloMauiToolkit","last_synced_at":"2025-04-18T17:31:14.060Z","repository":{"id":40281384,"uuid":"416134461","full_name":"brminnick/HelloMauiToolkit","owner":"brminnick","description":"An iOS, Android, macOS + Windows app built using .NET MAUI, demonstrating how to use the .NET MAUI CommunityToolkit","archived":false,"fork":false,"pushed_at":"2024-11-09T01:59:53.000Z","size":180,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-09T02:33:25.281Z","etag":null,"topics":["android","catalyst","csh","dotnet","ios","maccatalyst","macos","maui","net","net6","windows","winui"],"latest_commit_sha":null,"homepage":"https://github.com/communitytoolkit/maui","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/brminnick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["brminnick"]}},"created_at":"2021-10-12T01:00:05.000Z","updated_at":"2024-11-09T01:59:51.000Z","dependencies_parsed_at":"2023-01-27T06:31:55.571Z","dependency_job_id":"9138227f-2acf-43d9-91b0-0685ef483b8d","html_url":"https://github.com/brminnick/HelloMauiToolkit","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/brminnick%2FHelloMauiToolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brminnick%2FHelloMauiToolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brminnick%2FHelloMauiToolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brminnick%2FHelloMauiToolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brminnick","download_url":"https://codeload.github.com/brminnick/HelloMauiToolkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223783108,"owners_count":17201903,"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":["android","catalyst","csh","dotnet","ios","maccatalyst","macos","maui","net","net6","windows","winui"],"created_at":"2024-11-09T03:49:56.144Z","updated_at":"2025-04-18T17:31:13.722Z","avatar_url":"https://github.com/brminnick.png","language":"C#","funding_links":["https://github.com/sponsors/brminnick"],"categories":[],"sub_categories":[],"readme":"[![.NET MAUI](https://github.com/brminnick/HelloMauiToolkit/actions/workflows/maui.yml/badge.svg)](https://github.com/brminnick/HelloMauiToolkit/actions/workflows/maui.yml)\n\n# HelloMauiToolkit\nThe [.NET MAUI Community Toolkit](https://github.com/communitytoolkit/maui) is a collection of common elements for development with .NET MAUI that developers tend to replicate across multiple apps. It simplifies and demonstrates common developer tasks when building apps with .NET MAUI.\n\n### .NET MAUI Community Toolkit: Converters\n\nThis specific example uses the [`ColorToHexRgbStringConverter`](https://github.com/CommunityToolkit/Maui/blob/202565a8ac06ae2df81123ebb87cce8c8ea673b9/src/CommunityToolkit.Maui/Converters/ColorToStringConverter.shared.cs#L25-L30).\n\n#### Add `UseMauiCommunityToolkit()`\n\nIn order to use the .NET MAUI Community Toolkit you need to call the extension method in your `MauiProgram.cs` file as follows:\n\n```csharp\nusing CommunityToolkit.Maui;\n\npublic static class MauiProgram\n{\n\tpublic static MauiApp CreateMauiApp()\n\t{\n\t\tvar builder = MauiApp.CreateBuilder();\n\t\t\n\t\t// Initialise the toolkit\n\t\tbuilder.UseMauiApp\u003cApp\u003e().UseMauiCommunityToolkit();\n\n\t\t// the rest of your logic...\n\t}\n}\n```\n\n#### Add XAML Namespace\n\nAt the top of your XAML file, add the following `xmlns`\n\n```xml\nxmlns:toolkit=\"http://schemas.microsoft.com/dotnet/2022/maui/toolkit\"\n```\n\n#### Use `ColorToHexRgbStringConverter`\n\nIn your `Binding` assign `Converter={converters:ColorToHexRgbStringConverter}`:\n\n```xml\nText=\"{Binding Source={x:Reference ClickMeButton}, Path=BackgroundColor, Converter={toolkit:ColorToHexRgbStringConverter}}\n```\n\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://user-images.githubusercontent.com/13558917/136874004-97d0792d-2561-44e9-afcb-9cc54ee35d02.png\" width=\"500\" /\u003e\n\u003c/p\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheCodeTraveler%2FHelloMauiToolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheCodeTraveler%2FHelloMauiToolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheCodeTraveler%2FHelloMauiToolkit/lists"}