Skip to content

Demonstrate how WPF interoperates with other frameworks

Notifications You must be signed in to change notification settings

Ironyho/WPFInterop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPFInterop

Here we will illustrate how WPF interacts with other frameworks, that is, hosting WPF content in programs of other framework (e.g., WinForms, Win32, and MFC), or hosting the content of other framework in WPF programs.

Projects

This solution consists of several projects, some of which are dynamic link libraries (DLL) and others are executable programs (EXE). Usually, the DLL is built with a Control, which can be hosted in other EXEs.

The whole solution is based on Visual Studio 2017, equipped with projects of Visual C# and Visual C++.

WpfControl

WPF User Control Library (.NET Framework) project based on C#. It's built with a UserControl which will be hosted in other programs.

WinFormControl

Windows Forms Control Library (.NET Framework) project based on C#. A Windows Forms UserControl wrapped WPF User Control is built as an COM/AxtiveX. This project has demostrated how to indirectly build WPF Control as DirectX component, which can be widely used by programs of other framework.

Win32App_CLR

Windows Desktop Application (Win32) project based on C++/CLI, hosting WPF Control in Win32 Application within mamaged C++ (C++/CLR).

MFCAPP

MFC Application based on C++, hosting WPF control in MFC only with unmanaged c++, without C++/CLR.

References

About

Demonstrate how WPF interoperates with other frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published