{"id":19418828,"url":"https://github.com/andrewkeepcoding/winuidemos","last_synced_at":"2025-04-24T13:35:22.416Z","repository":{"id":259998750,"uuid":"862193501","full_name":"AndrewKeepCoding/WinUIDemos","owner":"AndrewKeepCoding","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-05T06:32:19.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-05T07:27:15.819Z","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/AndrewKeepCoding.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}},"created_at":"2024-09-24T07:38:27.000Z","updated_at":"2024-11-05T06:32:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6dd5398-bbf9-4579-907d-8d7423eb7c82","html_url":"https://github.com/AndrewKeepCoding/WinUIDemos","commit_stats":null,"previous_names":["andrewkeepcoding/winuidemos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewKeepCoding%2FWinUIDemos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewKeepCoding%2FWinUIDemos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewKeepCoding%2FWinUIDemos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewKeepCoding%2FWinUIDemos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewKeepCoding","download_url":"https://codeload.github.com/AndrewKeepCoding/WinUIDemos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223954716,"owners_count":17231189,"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-11-10T13:15:24.703Z","updated_at":"2025-04-24T13:35:22.396Z","avatar_url":"https://github.com/AndrewKeepCoding.png","language":"C#","readme":"﻿# WinUIDemos\n\nThis repo has branches for several WinUI demos.\nDon't forget to give a ⭐ if you find it helpuf.🤩\n\n## Branches\n\n### Exceptions\n\n#### Case 01\n\n- Microsoft.UI.Xaml.Markup.XamlParseException:\n\n    ```\n    The text associated with this error code could not be found.\n\n    Failed to assign to property 'Microsoft.UI.Xaml.ResourceDictionary.Source' because the type 'Windows.Foundation.String' cannot be assigned to the type 'Windows.Foundation.Uri'. [Line: 13 Position: 6]\n    ```\n\n    \u003cdetails\u003e\n    \u003csummary\u003eCall Stack\u003c/summary\u003e\n \t    WinRT.Runtime.dll!WinRT.ExceptionHelpers.ThrowExceptionForHR.__Throw|38_0(int hr)\tUnknown\n \t    WinRT.Runtime.dll!WinRT.ExceptionHelpers.ThrowExceptionForHR(int hr)\tUnknown\n \t    Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.LoadComponent(WinRT.IObjectReference _obj, object component, System.Uri resourceLocator, Microsoft.UI.Xaml.Controls.Primitives.ComponentResourceLocation componentResourceLocation)\tUnknown\n \t    Microsoft.WinUI.dll!Microsoft.UI.Xaml.Application.LoadComponent(object component, System.Uri resourceLocator, Microsoft.UI.Xaml.Controls.Primitives.ComponentResourceLocation componentResourceLocation)\tUnknown\n    \u003e\tWinUIDemoApp.dll!WinUIDemoApp.Shell.InitializeComponent() Line 37\tC#\n \t    WinUIDemoApp.dll!WinUIDemoApp.Shell.Shell() Line 14\tC#\n \t    WinUIDemoApp.dll!WinUIDemoApp.WinUIDemoApp_XamlTypeInfo.XamlTypeInfoProvider.Activate_6_Shell() Line 302\tC#\n \t    WinUIDemoApp.dll!WinUIDemoApp.WinUIDemoApp_XamlTypeInfo.XamlUserType.ActivateInstance() Line 764\tC#\n \t    Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.Markup.IXamlType.Do_Abi_ActivateInstance_13(nint thisPtr, nint* result)\tUnknown\n \t    [Native to Managed Transition]\t\n \t    [Managed to Native Transition]\t\n \t    Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.LoadComponent(WinRT.IObjectReference _obj, object component, System.Uri resourceLocator, Microsoft.UI.Xaml.Controls.Primitives.ComponentResourceLocation componentResourceLocation)\tUnknown\n \t    Microsoft.WinUI.dll!Microsoft.UI.Xaml.Application.LoadComponent(object component, System.Uri resourceLocator, Microsoft.UI.Xaml.Controls.Primitives.ComponentResourceLocation componentResourceLocation)\tUnknown\n \t    WinUIDemoApp.dll!WinUIDemoApp.MainWindow.InitializeComponent() Line 37\tC#\n \t    WinUIDemoApp.dll!WinUIDemoApp.MainWindow.MainWindow() Line 8\tC#\n \t    WinUIDemoApp.dll!WinUIDemoApp.App.OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args) Line 25\tC#\n \t    Microsoft.WinUI.dll!Microsoft.UI.Xaml.Application.Microsoft.UI.Xaml.IApplicationOverrides.OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)\tUnknown\n \t    Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IApplicationOverrides.Do_Abi_OnLaunched_0(nint thisPtr, nint args)\tUnknown\n \t    [Native to Managed Transition]\t\n \t    [Managed to Native Transition]\t\n \t    Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.Start(WinRT.IObjectReference _obj, Microsoft.UI.Xaml.ApplicationInitializationCallback callback)\tUnknown\n \t    Microsoft.WinUI.dll!Microsoft.UI.Xaml.Application.Start(Microsoft.UI.Xaml.ApplicationInitializationCallback callback)\tUnknown\n \t    WinUIDemoApp.dll!WinUIDemoApp.Program.Main(string[] args) Line 26\tC#\n    \u003c/details\u003e\n\n- Cause\n\n  Typo in the `Source` property of the `ResourceDictionary` element.\n\n  ```xml\n  \u003cResourceDictionary\n      xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n      xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n      xmlns:local=\"using:WinUIDemoApp\"\u003e\n\n      \u003cResourceDictionary.MergedDictionaries\u003e\n          \u003c!--  Incorrect Source  --\u003e\n          \u003cResourceDictionary Source=\"/Controls/AwesomeControl.xaml\" /\u003e\n          \u003c!--  Correct Source  --\u003e\n          \u003c!--\u003cResourceDictionary Source=\"/Controls/AwesomeCustomControl.xaml\" /\u003e--\u003e\n      \u003c/ResourceDictionary.MergedDictionaries\u003e\n\n  \u003c/ResourceDictionary\u003e\n  ```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewkeepcoding%2Fwinuidemos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewkeepcoding%2Fwinuidemos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewkeepcoding%2Fwinuidemos/lists"}