{"id":22007316,"url":"https://github.com/sotanakamura/winui3-without-midl","last_synced_at":"2026-03-05T09:33:08.577Z","repository":{"id":155603249,"uuid":"609158989","full_name":"sotanakamura/winui3-without-midl","owner":"sotanakamura","description":"WinUI 3 with C++ and XAML but without MIDL","archived":false,"fork":false,"pushed_at":"2024-02-04T06:33:57.000Z","size":21,"stargazers_count":17,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T22:48:02.615Z","etag":null,"topics":["cpp","windows","winui3","without-midl"],"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/sotanakamura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-03-03T13:57:40.000Z","updated_at":"2025-04-20T02:16:27.000Z","dependencies_parsed_at":"2024-02-04T07:29:38.016Z","dependency_job_id":"6e9d97c6-4700-4c14-a1de-e98e50735c61","html_url":"https://github.com/sotanakamura/winui3-without-midl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sotanakamura/winui3-without-midl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sotanakamura%2Fwinui3-without-midl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sotanakamura%2Fwinui3-without-midl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sotanakamura%2Fwinui3-without-midl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sotanakamura%2Fwinui3-without-midl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sotanakamura","download_url":"https://codeload.github.com/sotanakamura/winui3-without-midl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sotanakamura%2Fwinui3-without-midl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"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":["cpp","windows","winui3","without-midl"],"created_at":"2024-11-30T01:19:48.190Z","updated_at":"2026-03-05T09:33:08.532Z","avatar_url":"https://github.com/sotanakamura.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WinUI 3 with C++ and XAML but without MIDL\nYou can define WinUI 3 UIs with XAML. Classes reffered in XAML should be Windows runtime classes which you define with MIDL. Creating Windows Runtime classes is a little bit hard. This repositry provides information aboud how to define UIs with XAML but without MIDL.\n\n## Define UIs in C++\nSee [WinUI 3 in C++ Without XAML](https://github.com/sotanakamura/winui3-without-xaml)\n\n## Define UIs in XAML instead of C++ code\n\n1. Add MainPage.xaml file to define UIs.\n\n    ```xaml\n    // MainPage.xaml\n    \u003cWindow xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\u003e\n        \u003cStackPanel HorizontalAlignment=\"Center\" VerticalAlignment=\"Center\"\u003e\n            \u003cTextBlock\u003eHello World!\u003c/TextBlock\u003e\n        \u003c/StackPanel\u003e\n    \u003c/Window\u003e\n    ```\n\n1. Load XAML file and assign it as a UIElement object.\n\n    ```cpp\n    window = Window();\n    Application::LoadComponent(window, Uri(L\"ms-appx:///MainPage.xaml\"));\n    ```\n\n## Build and run\nYou can see a window displaying \"Hello World!\"\n\n## Note\nYou need to implement event hundlers and binding in C++ code. If you want to do it in XAML, you need to create Windows Runtime class with MIDL. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsotanakamura%2Fwinui3-without-midl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsotanakamura%2Fwinui3-without-midl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsotanakamura%2Fwinui3-without-midl/lists"}