User interface (Beginner)

Hello,

I have a question about user interface for Rhino Plugins. My question if I start creating a plugin with C# can I use C# standard UI “tools” that can appear in Rhino? Or what is the best way to create UI for a Rhino Plugin? I found this source so far: http://mkmra2.blogspot.kr/2012/12/creating-graphical-user-interfaces-with.html

The link you found is for python and is not what I would suggest for a C# developer.

If you are using C#, then I would suggest that you use either WPF or WinForms. Windows Forms is easier to learn, but WPF is more powerful and allows for better separation of interface and the logic behind the interface. We used to use WinForms a lot and are transitioning to all of our new C# user interface code being written with WPF.

Here are a couple of WinForm samples to get you started.

https://github.com/dalefugier/SampleCsModalForm
https://github.com/dalefugier/SampleCsModelessForm
https://github.com/dalefugier/SampleCsPanel

Since you are using the word “Beginner”, I would highly recommend looking at the SampleCsModalForm first

Thank you for your reply!

This is absolutely helpful.

(I have also read the Python Primer, bit by bit concepts in programming are getting clear.)

Hi Dale, do you have any updates to these? Link missing (from 13 i know)

Hi @sonderskovmathias,

All samples were moved (quite a while ago) to the Rhino developer samples repo on GitHub.

– Dale

1 Like