Since Rhino8 supports .net7, and I found winform/wpf + Blazor is a new way of building UI. Can winform/wpf + Blazor be used in Rhinocommon Plugin? I want to try it but don’t have a clue, is there an official example ?
Certainly WPF works well within Rhino - we have good success under .net 4.8 in Rhino 7 and .net 4.8 & .net 7 in Rhino 8. I am not familiar with Blazor though
Have you read this @Uni_Zou ?
What are you trying to achieve by going through this route? It sounds complicated.
Actually yes. In fact, I create a rhinocommon plug-in and a winform blazor console app,with almost the same code inside this link as you pointed out just to figure out how can winform/wpf + blazor be used in Rhino8
@stevebaer Emm actually I have a plan to develop a rhinocommon plugin with some WPF or WinForm interfaces. I have very little experience with WPF development but wrote some Blazor web pages. Since Rhino8 supports .net7, I try to figure out the way to use Winform/WPF + Blazor in Rhino8. I have had some attempts. However, When I load the test plugin and run the command in Rhino, the other components are working fine, but the Blazorwebview component is not running successfully and it says" There is no content at ". I don’t know how to fix this issue, Do you know what’s going on?
MyRhinoBlazor.zip (16.5 MB)
Hi David! I know maybe WPF is the best solution used in Rhino. But if Blazor Hybird can be used in Rhino8, which means a new way to rapidly develop plug-ins, and it is also beneficial for people who are not familiar with WPF development but are relatively familiar with web technologies.
Have you tried the Eto library? (cross platform with Rhino for Mac so that’s an advantage)
You mention attracting people familiar with web tech. The Eto setup (but not syntax) reminds me of css divs and elements.
We do recommend Eto. It ships with Rhino and is really WPF under the hood when running on Windows. I don’t think we (as in McNeel) can help with regards to supporting this blazor option. We don’t have experience in this area.
Anyway, thank you for your attention!
Thanks for your discussion, I’ll try eto!