how to use CoreWindow in winforms?

mc 4,616 Reputation points
2024-08-18T00:09:10.34+00:00

I want to use Direct2D and the link of CreateSwapChainFromCoreWindow says I should Use

CreateSwapChainFromCoreWindow and If I use CreateSwapChainForHwnd I can not publish to microsoft store.

so Can I use CoreWindow in winform?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,921 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,653 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 85,881 Reputation points
    2024-08-18T06:56:20.11+00:00

    CreateSwapChainForCoreWindow is for UWP

    In WinForms, CreateSwapChainForHwnd or CreateSwapChainForComposition

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.