Hi archimax –
I have been wanting to add border options for StackPanels to HumanUI for a while now. I have a project which may necessitate that in the near future, so I will let you know if I end up adding and submitting a PR to the OS repo.
In the meantime, I wish it were possible to reference a dll and operate on elements directly, but currently only the MainWindow class is abstracted out into the HumanUIBaseApp dll. All of the helper functions and custom classes for elements are contained within the GHA project, which I don’t think you can reference in a C# component. Never tried it but I assume it doesn’t work.
I actually think it would be useful to move all the custom classes and helper methods into the referenced dll, because it would make prototyping new components and features much easier (e.g., possible) for end users. This is a pretty major structural change to the plugin, though, so I’m not sure how high on the priority list this is. If you are comfortable with building from source, you can always clone the OS repo and start contributing!
As for hacks and workarounds you might be able to do with XAML, @andheum can definitely answer that much better than I can. I’m just about to get into some XAML experimentation myself, so I’m curious to hear his thoughts on the matter.