This is a mirror of official site: http://jasper-net.blogspot.com/

WPF and Win32 Interoperation

| Monday, February 7, 2011
This topic provides an overview of how to interoperate WPF and Win32 code. Windows Presentation Foundation (WPF) provides a rich environment for creating applications. However, when you have a substantial investment in Win32 code, it might be more effective to reuse some of that code.

This topic contains the following sections.

WPF and Win32 Interoperation Basics
There are two basic techniques for interoperation between WPF and Win32 code.

  • Host WPF content in a Win32 window. With this technique, you can use the advanced graphics capabilities of WPF within the framework of a standard Win32 window and application.
  • Host a Win32 window in WPF content. With this technique, you can use an existing custom Win32 control in the context of other WPF content, and pass data across the boundaries.

Each of these techniques is conceptually introduced in this topic. For a more code-oriented illustration of hosting WPF in Win32, see Walkthrough: Hosting WPF Content in Win32. For a more code-oriented illustration of hosting Win32 in WPF, see Walkthrough: Hosting a Win32 Control in WPF.

Read more: MSDN

Posted via email from Jasper-net

0 comments: