Wpf for Rhino


#1

Hi everybody,
I have some questions before starting to Code my own Plugins and toolbars for Rhino.

  1. In the example given https://github.com/dalefugier/SampleCsWpfPanel what is the RhinoWindows ?
  2. A colleague of mine tried it with this method, for a Winform and it worked
    Rhino.UI.Panels.RegisterPanel(this, mypanel, “myparameters”), Properties.Resources.Paramètres1);
    is it possible to give a WPF User Control or a WPF Windows instead?

Do you have other examples? the links on the wiki are dead http://wiki.mcneel.com/_media/legacy/en/CSMenuTest.zip


(Dale Fugier) #2

RhinoWindows.dll is a .NET assembly that contains Windows platform-specific helper classes.

I’m confused. The sample you reference demonstrates how to embed a WPF window into a Rhino docking container. What am I missing?

My GitHub site has a number of samples:

https://github.com/dalefugier

Also, I don’t recognize the sample. What does it do? Where did you find the link?

– Dale


#3

Hello, thanlk you for your answer and you have right. It shows how to add a
wpf window. The thing is need a the RhinoWindow.dll and I don’t know where
to find it?


(Dale Fugier) #4

It will be in Rhino’s System folder, on along with other .NET assemblies, such as RhinoCommon.dll.

C:\Program Files\Rhinoceros 5 (64-bit)\System
or
C:\Program Files (x86)\Rhinoceros 5\System