Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

InkCanvas not able to be used at WinForm Application #349

Open
2 tasks done
mortiii opened this issue Jul 11, 2022 · 5 comments
Open
2 tasks done

InkCanvas not able to be used at WinForm Application #349

mortiii opened this issue Jul 11, 2022 · 5 comments
Labels
bug 🐛 Something isn't working XamlIslands 🏝️

Comments

@mortiii
Copy link

mortiii commented Jul 11, 2022

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:

  1. i created Winform App .Net Core 3.1 or .NET Framework 4.8
  2. installed NuGet packages Microsoft.Toolkit.Forms.UI.Controls and Microsoft.Toolkit.Forms.UI.XamlHost
  3. i tried to drag drop any control (ink canvas, xamlhost,...) to the form and it fires following message...
    errormsg1
    errormsg2

Expected behavior

am i wrong or should this work?
Is there any actual demo project?

Environment

NuGet Package(s):
nugets
Project .NET Version:

  • .NET Framework (version: 4.8) OR
  • .NET Core 3.1
    Windows 10 Version: (its a VM, but i think it doesnt matter)
    winver
    Visual Studio:
    vsver
@mortiii mortiii added the bug 🐛 Something isn't working label Jul 11, 2022
@ghost
Copy link

ghost commented Jul 11, 2022

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 🙌

@ghost ghost added the needs triage 🔍 label Jul 11, 2022
@michalleptuch
Copy link

Could you share your code?

@mortiii
Copy link
Author

mortiii commented Jul 12, 2022

InkControls.zip

@michalleptuch
Copy link

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.

@ghost ghost added the needs attention 👋 label Jul 29, 2022
@mortiii
Copy link
Author

mortiii commented Jul 30, 2022

So there isnt someone with an working example project?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 Something isn't working XamlIslands 🏝️
Projects
None yet
Development

No branches or pull requests

3 participants