{"id":15059905,"url":"https://github.com/shortdevelopment/shortdev.uwp.fulltrust","last_synced_at":"2025-04-10T05:43:47.675Z","repository":{"id":40681665,"uuid":"484775403","full_name":"ShortDevelopment/ShortDev.Uwp.FullTrust","owner":"ShortDevelopment","description":"Create a performant WinUI application with Uwp and CoreWindow and run as full-trust win32","archived":false,"fork":false,"pushed_at":"2024-12-05T23:55:15.000Z","size":1642,"stargazers_count":19,"open_issues_count":6,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-02T20:52:15.340Z","etag":null,"topics":["full-trust","star","uwp","winui2","xaml-islands","xaml-ui"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/ShortDev.Uwp.FullTrust/","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/ShortDevelopment.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-23T14:50:38.000Z","updated_at":"2025-01-31T03:26:15.000Z","dependencies_parsed_at":"2024-12-06T00:25:19.230Z","dependency_job_id":"4cdbca01-4af0-479a-bb98-5e7f755afa8f","html_url":"https://github.com/ShortDevelopment/ShortDev.Uwp.FullTrust","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShortDevelopment%2FShortDev.Uwp.FullTrust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShortDevelopment%2FShortDev.Uwp.FullTrust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShortDevelopment%2FShortDev.Uwp.FullTrust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShortDevelopment%2FShortDev.Uwp.FullTrust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShortDevelopment","download_url":"https://codeload.github.com/ShortDevelopment/ShortDev.Uwp.FullTrust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239166999,"owners_count":19593132,"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":["full-trust","star","uwp","winui2","xaml-islands","xaml-ui"],"created_at":"2024-09-24T22:49:46.976Z","updated_at":"2025-02-16T17:34:44.955Z","avatar_url":"https://github.com/ShortDevelopment.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShortDev.Uwp.FullTrust\n\nCreate highly performant UI with `WinUi2` (Uwp) and enjoy the freedom of `Win32`!    \nYou don't need any interop code for the `.GetForCurrentView()` methods.   \n    \n### Problems\n - The library does currently not support any Uwp-Frame related apis\n - Therefore not frame customization\n - Creating a new window is only possible with the library apis\n - Pickers still need `IInitializeWithWindow` (See [#11](https://github.com/ShortDevelopment/ShortDev.Uwp.FullTrust/issues/11))\n\n## Setup\n\n1. Create new Uwp project (*UI-Project*)\n2. Add `\u003cEnableTypeInfoReflection\u003efalse\u003c/EnableTypeInfoReflection\u003e` in to the project file\n3. Add reference to this library\n---\n5. Create new `netcoreapp3.1` `WinExe` project (*Host-Project*)\n6. Add reference to `Microsoft.Toolkit.Win32.UI.SDK`\n7. Add reference to Uwp project\n8. Add `TargetPlatformVersion` and `AssetTargetFallback` to the project file\n9. Redirect main method to the Uwp main method (See below)\n \n### *Host-Project* (netcoreapp3.1)\nThis is needed for the management of all the dependency and runtime stuff.   \nShould contain no logic.\n```xml\n\u003cProject Sdk=\"Microsoft.NET.Sdk.WindowsDesktop\"\u003e\n\n  \u003cPropertyGroup\u003e\n    \u003cOutputType\u003eWinExe\u003c/OutputType\u003e\n    \u003cTargetFramework\u003enetcoreapp3.1\u003c/TargetFramework\u003e\n    \u003cPlatforms\u003ex86;x64\u003c/Platforms\u003e\n    \u003cAssetTargetFallback\u003euap10.0.19041\u003c/AssetTargetFallback\u003e\n    \u003cTargetPlatformVersion\u003e10.0.19041\u003c/TargetPlatformVersion\u003e\n  \u003c/PropertyGroup\u003e\n\n  \u003cItemGroup\u003e\n    \u003cPackageReference Include=\"Microsoft.Toolkit.Win32.UI.SDK\" Version=\"6.1.2\" /\u003e\n  \u003c/ItemGroup\u003e\n\n  \u003cItemGroup\u003e\n    \u003cProjectReference Include=\"\u003cPATH_TO_UWP_PROJECT\u003e\" /\u003e\n  \u003c/ItemGroup\u003e\n\n\u003c/Project\u003e\n```\n\n#### `Program.cs`\n```csharp\npublic class Program\n{\n    [STAThread]\n    public static void Main(string[] args)\n    {\n        NAMESPACE.Program.Main(args);\n    }\n}\n```\n\n### *UI-Project* (Uwp)\nShould contain all logic.   \n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cProject ToolsVersion=\"15.0\" DefaultTargets=\"Build\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\"\u003e\n  \u003cImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" Condition=\"Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')\" /\u003e\n  \u003cPropertyGroup\u003e\n    \u003cEnableTypeInfoReflection\u003efalse\u003c/EnableTypeInfoReflection\u003e\n  \u003c/PropertyGroup\u003e\n  ...\n\u003c/Project\u003e\n```\n\n#### `Program.cs`\n```csharp\npublic class Program\n{\n    [STAThread]\n    public static void Main(string[] args)\n    {\n        FullTrustApplication.Start((_) =\u003e new App());\n    }\n}\n```\n\n## Examples\n#### Create New Window\n```csharp\nvar view = FullTrustApplication.CreateNewView();\n_ = view.CoreWindow.Dispatcher.RunIdleAsync((x) =\u003e\n{\n    Window.Current.Content = new MainPage();\n    Window.Current.Activate();\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshortdevelopment%2Fshortdev.uwp.fulltrust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshortdevelopment%2Fshortdev.uwp.fulltrust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshortdevelopment%2Fshortdev.uwp.fulltrust/lists"}