microsoft / microsoft-ui-xaml

WinUI: a modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
MIT License
6.38k stars 683 forks source link

Microsoft.Ui.Composition parity with Windows.Ui.Composition (or interop) #8192

Closed smj389 closed 1 year ago

smj389 commented 1 year ago

Describe the bug

Microsoft.Ui.ICompositorInterop is missing the methods for connecting to a DXGI Swap Chain. Since, the equivalent functionality now exists at the XAML layer (SwapChain and MediaPlayerElement) is it possible to reinstate it at the Visual Layer please?

Steps to reproduce the bug

  1. Attempt to port app from UWP to Windows App sdk that uses a swapchain
  2. Become sad when the APIs are missing

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.3 Experimental 1: 1.3.230202101-experimental1

Windows version

No response

Additional context

No response

DarranRowe commented 1 year ago

Just for clarification, is this about using Microsoft.UI.Composition in general, or is it about using this in conjunction with Xaml? If it is about using it in general, is there an issue stopping you from using Windows.UI.Composition? This is supported in desktop applications.

smj389 commented 1 year ago

In conjunction with XAML. I would have thought the Windows AppSDK would offer a comprehensive solution.


From: DarranRowe @.> Sent: Thursday, February 16, 2023 1:14:16 PM To: microsoft/microsoft-ui-xaml @.> Cc: smj389 @.>; Author @.> Subject: Re: [microsoft/microsoft-ui-xaml] Microsoft.Ui.Composition parity with Windows.Ui.Composition (Issue #8192)

Just for clarification, is this about using Microsoft.UI.Composition in general, or is it about using this in conjunction with Xaml? If it is about using it in general, is there an issue stopping you from using Windows.UI.Composition? This is supported in desktop applications.

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/microsoft-ui-xaml/issues/8192#issuecomment-1433071115, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADAOOECNAH2UWI4MQLMHBUTWXYR2HANCNFSM6AAAAAAU6AK4GA. You are receiving this because you authored the thread.Message ID: @.***>

smj389 commented 1 year ago

I have seen that in preview you have an API ContentExternalOutputLink which allows interop with DComposition. It would be good to be able to interop with Windows.UI.Composition as well.

ClearSeve commented 1 year ago

Does ContentExternalOutputLink no longer exist in the latest version of WinUI3 (1.3.230228005-preview1)?

smj389 commented 1 year ago

@ClearSeve - it exists in the latest experimental version (not preview.) But that doesn’t allow interoperability with Windows.UI.Composition only DComp.

ClearSeve commented 1 year ago

I see. Thank you very much