InkCanvas not able to be used at WinForm Application
mortiii opened this issue · comments
Describe the bug
It seems to be impossible to use InkCanvas in my Windows Forms Application although it's targeted at .NET Core 3.1 or .NET Framework 4.8.
Steps to Reproduce
Steps to reproduce the behavior:
- i created Winform App .Net Core 3.1 or .NET Framework 4.8
- installed NuGet packages Microsoft.Toolkit.Forms.UI.Controls and Microsoft.Toolkit.Forms.UI.XamlHost
- i tried to drag drop any control (ink canvas, xamlhost,...) to the form and it fires following message...
Expected behavior
am i wrong or should this work?
Is there any actual demo project?
Environment
Hello mortiii, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
Could you share your code?
I prefer to use solution with custom controls hosted by WindowsXamlHost control: https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/host-custom-control-with-xaml-islands.
Your code doesn't work for me too, but I think it may be incomplete.
So there isnt someone with an working example project?