microsoft / CsWinRT

C# language projection for the Windows Runtime
MIT License
539 stars 102 forks source link

Hope to provide a CsWinRT Projection for WinUI 2 #1683

Open Gaoyifei1011 opened 1 month ago

Gaoyifei1011 commented 1 month ago

Describe the bug

Hope to provide a CsWinRT Projection for WinUI 2

To Reproduce

We hope to provide a CsWinRT Projection for WinUI 2. At present, we found that CsWinRT has provided CsWinRT Projection support for Windows.UI.Xaml in CsWinRT 10.0.xxxxx.37-preview. However, the control styles of Windows.UI.Xaml are all old styles, and if you want to adapt to windows 11 style, you need to download the Microsoft.UI.Xaml (WinUI 2) Nuget package. However, WinUI 2 does not yet have CsWinRT Projection support. We hope to add a CsWinRT Projection dll for WinUI 2

希望能提供 WinUI 2 的 CsWinRT Projection。目前我们在 CsWinRT 10.0.xxxxx.37-preview 中发现 CsWinRT 已经提供了 Windows.UI.Xaml 的 CsWinRT Projection 支持,但是 Windows.UI.Xaml 的控件样式都是旧样式,如果想要适配 windows 11 风格,需要下载 Microsoft.UI.Xaml(WinUI 2)Nuget 包。然而 WinUI 2 还没有 CsWinRT Projection 支持,希望能添加 WinUI 2 的 CsWinRT Projection dll

CsWinRT Windows.UI.Xaml dll image

Expected behavior

hope to add a CsWinRT Projection dll for WinUI 2. 希望能添加 WinUI 2 的 CsWinRT Projection dll

Version Info

CsWinRT 2.1.0-prerelease.240722.1 Windows SDK 10.0.XXXXX.37-Preview

Additional context

None

dongle-the-gadget commented 1 month ago

You can build one yourself.

https://github.com/gus33000/CsUWP/blob/master/Projections/WinUI2/WinUI2.csproj

Gaoyifei1011 commented 1 month ago

You can build one yourself.

https://github.com/gus33000/CsUWP/blob/master/Projections/WinUI2/WinUI2.csproj

Thank you very much. I'm raising this issue here in the hope that the Microsoft WinUI or CsWinRT team will consider updating the Microsoft.ui.xaml (WinUI 2) Nuget package, Added a Projection of WinUI 2 CsWinRT

非常感谢。我在这里提出这个 issues 的目的是希望 Microsoft WinUI 或 CsWinRT 团队能考虑更新一下 Microsoft.UI.Xaml (WinUI 2) Nuget 包,添加对 WinUI 2 CsWinRT Projection 的支持