WPF for Rhino plugins

I’ve been able to write a simple plugin using Windows Forms that displays a button which popups up a MessageBox. However, I haven’t been able to do the same using WPF. If I inherit from System.Windows.Window and also implement System.Windows.Forms.IWin32Window then it displays but is all grey and the button does not show. Has anyone else been able to use WPF?

Regards

Steve

Hi Steve,

Here is a RhinoCommon plug-in samples that displays a WPF window is a dockable panel.

https://github.com/dalefugier/SampleCsWpfPanel

Does this help?

– Dale

HI Dale
Yes, that worked beautifully. Thanks for the rapid response.

Regards

Steve

Hi @Lubanski,

All of my samples have been moved to the Rhino Developer Samples repository on GitHub.

– Dale