Request for more developer samples utilizing Xeto for UI

While this is probably not exactly what you are looking for, I’ve experimented a bit with the .xeto/.cs duality and am going to share my experiences here.

It’s very much like .xaml/.cs but you’ll need to use eto components instead of wpf. So you’ll be missing out on objects like <Border>

You can see the files here:

I just managed to link a custom drawable object also and I had some challenges with that. You can read about that here Custom Drawable objects in xeto/xaml · picoe/Eto · Discussion #2529 · GitHub

What also annoys me is that there is the full RhinoWindows Nuget package which has been recommended here on forum, but as I see much of the code is totally undocumented. Also it’s tough to know whether to use this or not since RhinoWindows is not crossplatform. Which means that those viewmodels logics should live in rhinocommon and not rhinowindows.:

There is an example of MVVM in the SDK, although this should be expanded a lot and include commands (I don’t see a single ICommand instance in Rhino SDK):

The Command class does exist in Eto and is not to be confused with the Rhino.Commands.Command:

You can see a command example here: https://github.com/picoe/Eto/blob/develop/test/Eto.Test/Commands/Quit.cs
https://github.com/picoe/Eto/blob/develop/samples/Tutorials/CSharp/Tutorial2/Main.cs

And for binding in xaml all i could find is this example:

1 Like