Implement a new WPF interoperability control
See original GitHub issueDescribe 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:
- checkout
release 11.0.0-rc1.1
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
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:
- Created 4 months ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
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 😃