UserControl as DataTemplate

Sep 12, 2008 at 1:46 PM
I have created a DataTemplate with a custom control (actually, I only replaced the <Image> with a <myControl>, I kept the rest of it exactly the same.

This control does the following:

1) Show a loading gif
2) When the DocumentUrl is set (via automatic binding), the control starts loading the document (mostly pdf) in a browser (which is located in a WindowsFormsHost).

All works fine except that the browser is not drawn correctly (in the left-top of the screen instead of the real cover boxes).

Do you have any idea why this is not working?
Sep 12, 2008 at 3:27 PM
Update:

I have replaced the WindowsFormsHost by a real WPF version of the webbrowser. However, the Adobe Reader control still shows up strange.