See the sample I had posted : https://github.com/castorix/WinUI3_SwapChainPanel_Direct2D
The drawing is done in Render function, called in CompositionTarget_Rendering
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
m_pRenderTarget->BeginDraw();
m_pRenderTarget->SetTransform(D2D1::Matrix3x2F::Identity());
m_pRenderTarget->Clear(D2D1::ColorF(D2D1::ColorF::DeepSkyBlue));
m_pRenderTarget->EndDraw();
in winform I can get the result.
but in winui3 nothing changed why?
See the sample I had posted : https://github.com/castorix/WinUI3_SwapChainPanel_Direct2D
The drawing is done in Render function, called in CompositionTarget_Rendering