Wednesday, 13 June 2007

Mixing WPF into WinForms

Just came across this today.  I was just seeing how easy it is to mix winforms and wpf (completely simple).  The only issues was it came up and said it didn't know what InitializeComponent() was.     This is because it wasn't compiling the XAML.   So...you need  :-

<Import Project="$(MSBuildBinPath)\Microsoft.WinFX.targets" />

in the project file (near the other similar looking import)

No comments: