question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement a new WPF interoperability control

See original GitHub issue

Describe the bug It seems that, when moving from 11.0.0-preview8 to 11.0.0-rc1.1, the Avalonia.Interoperability project was changed and, in that change, the WinForms folder was moved but the Wpf folder was fully removed. I don’t know if there was a plan to add it back later or something but we would GREATLY benefit from the Wpf interop, it makes migating apps to Avalonia sooooo much easier as we can do it piecemeal.

To Reproduce Steps to reproduce the behavior:

  1. checkout release 11.0.0-rc1.1

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 11.0.0-rc1.1

Additional context Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created 4 months ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
timuniecommented, Jun 2, 2023

@heuristicAL docs are under heavy development for v11 atm. So maybe after the docs for v11 are alive, you can file a PR if still needed. Here is the 0.10.x docs:

https://github.com/AvaloniaUI/Documentation

0reactions
heuristicALcommented, Jun 1, 2023

Oh, that’s totally acceptable! Thanks again for the info! I’ll keep tracking this task in case the feature is released in the future but, in the meantime, HwndHost seems like a perfectly acceptable alternative. Y’all should add it to the docs! It’s hard to find any info about this. I can look into contributing it myself if someone can point me to which section it should be in 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Forms and WPF Interoperability Input Architecture
The WindowsFormsHost class implements the IKeyboardInputSink interface to coordinate focus management with WPF.
Read more >
WPF and Windows Forms Interoperation
The two key classes that implement interoperation capabilities ... The WPF control may host one or more Windows Forms controls using XAML.
Read more >
Chapter 20. Interoperability - WPF in Action with Visual Studio ...
First, create a new UserControl called SystemMonitorHolder . Why? Because the ActiveX control we're going to embed is the SystemMonitor control, which should ......
Read more >
Put WPF control into a Windows Forms Form?
This control can then host a WPF element. From the WinForms designer, you can find this control under 'WPF Interoperability'. First you may...
Read more >
How to Use WPF Controls Inside an Excel Actions Pane?
Your problem is that you are trying to place a WPF Control inside another WPF Control. Notice that the section ElementHost Tasks has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found