WPF for Rhino plugins


#1

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


(Dale Fugier) #2

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


#3

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

Regards

Steve


#4

Dale,
The link is not working: https://github.com/dalefugier/SampleCsWpfPanel
Is there a way to access to the sample?
Thanks,
Luca


(Lukasz Domagala) #5

(Dale Fugier) #6

Hi @Lubanski,

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

– Dale