WPF Interop Part 2 - David's Blog by Xaml

Sun, 31 May 2009 00:01:38 -0600

WPF Interop Part 2 - David's Blog

by Xaml @ Sun, 31 May 2009 00:01:38 -0600



Create a console application (as the Calculator control has no GUI there was no point making the same a WPF application) and add a reference to the SimpleControlLib.dll. We can now consume the COM control through the managed wrapper as follows: ... ="http://schemas.microsoft.com/winfx/2006/xaml/presentation". xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml". xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" ...