The Wayback Machine - https://web.archive.org/web/20200914065519/http://github.com/microsoft/Win2D/issues/643
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make win2d compatible with XAML islands (Draw event of CanvasControl not called) #643

Open
lhak opened this issue Oct 17, 2018 · 2 comments
Open
Labels

Comments

@lhak
Copy link

@lhak lhak commented Oct 17, 2018

I have tested using the win2d library in a XAML Island (winforms .net app). I know this is certainly not a supported configuration (yet?) but I can successfully draw to the screen using the CanvasSwapChainPanel control. However, using the CanvasControl or CanvasAnimatedControl fails because the Draw event is never called.

Additionally, adding the nuget package directly to the .net project fails (error message about compatibility with .net framework) so I had to manually add the .winmd and .dll file to the project.

@clandrew
Copy link
Contributor

@clandrew clandrew commented Oct 19, 2018

Yeah, that's not a supported configuration, but the report is appreciated all the same. Sorry I don't have any theories for what could be happening here. Win2D Draw events are raised from composition events (i.e. Windows.UI.Xaml.Media.CompositionTarget.Rendering) so the first step would be trying to figure out why those are not making it through.

Not being able to add the package through the Nuget package manager also seems annoying but is likely a separate issue.

This was referenced Oct 20, 2018
@shawnhar shawnhar added the suggestion label Oct 25, 2018
@shawnhar shawnhar changed the title Draw event of CanvasControl not called when using win2d in a XAML island Make win2d compatible with XAML islands (Draw event of CanvasControl not called) Oct 25, 2018
@devsko
Copy link

@devsko devsko commented Mar 19, 2019

Fixed in #675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.