Replies: 2 comments
-
Not an answer, but I use Direct2D directly (in C#, VB, C++) instead of Win2D and it works fine with CompositionTarget.Rendering |
Beta Was this translation helpful? Give feedback.
0 replies
-
@onslauth can you verify which version of Win2D you are using? .uwp or .winui3? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to use Win2D CanvasControl in a WinUI3 / AppSDK program. I have followed the instructions at: https://microsoft.github.io/Win2D/WinUI3/html/Introduction.htm
However, when I add the following code:
It returns the error:
Error XLS0503 A value of type 'CanvasControl' cannot be added to a collection or dictionary of type 'UIElementCollection'.
I have tried adding the control directly to
MainWindow
,Page
and aUserControl
, with and without theGrid
control. I have also tried to place it inside aCanvas
control, also to no avail.Does anyone perhaps know of a solution?
Beta Was this translation helpful? Give feedback.
All reactions