{"id":22819412,"url":"https://github.com/jack251970/winui3-template","last_synced_at":"2025-07-25T09:40:12.755Z","repository":{"id":267578429,"uuid":"877852104","full_name":"Jack251970/WinUI3-Template","owner":"Jack251970","description":"A template for WinUI 3, with support of tray icon, multi-thread window, splash screen, etc.","archived":false,"fork":false,"pushed_at":"2025-01-31T14:26:24.000Z","size":856,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T20:23:05.755Z","etag":null,"topics":["csharp","template","template-project","templates","templating","wasdk","windowsappsdk","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/Jack251970.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-10-24T11:01:21.000Z","updated_at":"2025-03-09T23:58:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbcf1492-517a-410b-88eb-0095700a8cbb","html_url":"https://github.com/Jack251970/WinUI3-Template","commit_stats":null,"previous_names":["jack251970/winui3-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jack251970%2FWinUI3-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jack251970%2FWinUI3-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jack251970%2FWinUI3-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jack251970%2FWinUI3-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jack251970","download_url":"https://codeload.github.com/Jack251970/WinUI3-Template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250344643,"owners_count":21415158,"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":["csharp","template","template-project","templates","templating","wasdk","windowsappsdk","winui3"],"created_at":"2024-12-12T15:11:47.456Z","updated_at":"2025-04-23T00:21:48.766Z","avatar_url":"https://github.com/Jack251970.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./WinUI3Template/Assets/Release/PackageIcon.png\" width=\"90\"\u003e\n\u003c/p\u003e\n\n# WinUI3 Template\n\n**A template for WinUI 3, with support of tray icon, multi-thread window, splash screen, etc.**\n\n## ⭐ Features\n\n### 1. Package / Unpackaged Mode\n### 2. Navigation View\n### 3. Setting Page\n1. Language\n2. Startup\n\t1. Startup Entry\n\t2. Logon Task\n3. Theme\n4. Backdrop\n### 4. Tray Icon\n### 5. Window Creation\n### 6. Multi-thread Window\n### 7. Custom Program\n### 8. Single Instance\n### 9. Splash Screen\n### 10. Serilog Logging\n\n## 🖼️ Screenshots\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./images/Screenshot1-Dark.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./images/Screenshot1.png\"\u003e\n  \u003cimg alt=\"Screenshot 1\" src=\"./images/Screenshot1.png\"\u003e\n\u003c/picture\u003e\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./images/Screenshot2-Dark.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./images/Screenshot2.png\"\u003e\n  \u003cimg alt=\"Screenshot 2\" src=\"./images/Screenshot2.png\"\u003e\n\u003c/picture\u003e\n\n## 🚀 Getting Started\n\n### 1. Replace in files\n* replace `WinUI3Template` with your own root namespace.\n* replace `WinUI3 Template` with your own app name.\n* replace `A template for WinUI 3.` with your own description.\n* replace `AuthorName` with your own name.\n* replace `Settings_Repository_NavigateUri` with your own repository.\n* replace `Settings_LicenseLink_NavigateUri` with your own license link.\n* replace `8f256a41-5ee3-4218-97c6-12e1f8d5c234` with your own GUID (PhoneProductId).\n* replace `445ab065-101e-45ff-80ab-45efcdf5dae5` with your own GUID (ToastActivatorCLSID).\n\n\u003e [!TIP]\n\u003e You can use `VSCode` to execute replace. Use Ctrl + Shift + S.\n\n### 2. Rename file names\n* rename `WinUI3Template` with your own project root name.\n\n\u003e [!TIP]\n\u003e You can use `PowerRename` module in `PowerToys` to execute replace.\n\n### 3. Custom project settings in the core project `csproj` file\n* Custom program: `\u003cDefineConstants\u003eDISABLE_XAML_GENERATED_MAIN;$(DefineConstants)\u003c/DefineConstants\u003e`\n* Single instance: `\u003cDefineConstants\u003eSINGLE_INSTANCE;$(DefineConstants)\u003c/DefineConstants\u003e`\n* Tray icon: `\u003cDefineConstants\u003eTRAY_ICON;$(DefineConstants)\u003c/DefineConstants\u003e`\n* Splash screen: `\u003cDefineConstants\u003eSPLASH_SCREEN;$(DefineConstants)\u003c/DefineConstants\u003e`\n\n\u003e [!TIP]\n\u003e If you don not need some features, you can remove the corresponding define constants.\n\n### 4. Implement TODOs\n* Initialize others things in `async Task ActivateAsync()` of `App.xaml.cs`.\n* Add the languages supported by the unpackaged app in `public static void Initialize()` of `AppLanguageHelper.cs`.\n\n### 5. Add a new window\n* Refer to `WindowsExtensions.cs` for more information.\n\n### 6. Building\n\n* Select the package / unpackaged mode.\n* Build the solution in Visual Studio or run `dotnet build` from the command line.\n\n## 📚 Reference\n\n* Files: https://github.com/files-community/Files\n* fluentui-system-icons: https://github.com/microsoft/fluentui-system-icons\n* H.NotifyIcon: https://github.com/HavenDV/H.NotifyIcon\n* ICONS8: https://icons8.com/icons\n* Newtonsoft.Json: https://github.com/JamesNK/Newtonsoft.Json\n* Template Studio for WinUI (C#): https://github.com/microsoft/TemplateStudio\n* terminal: https://github.com/microsoft/terminal\n* WinUI3Windows: https://github.com/smourier/WinUI3Windows\n* WinUI3-Template: https://github.com/Jack251970/WinUI3-Template\n* Windows Community Toolkit: https://github.com/CommunityToolkit/WindowsCommunityToolkit\n* WinUIEx: https://github.com/dotMorten/WinUIEx\n\n## 📄 License\n\n[MIT License](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjack251970%2Fwinui3-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjack251970%2Fwinui3-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjack251970%2Fwinui3-template/lists"}