Hosting SOLIDWORKS eDrawings control in Windows Presentation Foundation (WPF)

I tried the example in the link, but it doesn’t work. Does anyone have an example that can be used? I want to be compatible with multiple versions of eDrawings control.