DSL support for host window #468
Replies: 3 comments 1 reply
-
|
Originally the DSL only worked with classes that inherited from Control. We changed this a while ago to support text spans and other non control based Classed. This might be possible now, feel free to take a closer look - would be a great addition :) |
Beta Was this translation helpful? Give feedback.
-
|
OK. I'm still learning the basics, but will try to take a look once I have a better grasp. Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
Just wanted to let you know that I am working on this and hope to have a pull request ready soon. This will be my first significant contribution to an open source project, so please let me know if there's a particular protocol you'd like me to follow. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
FuncUI is a great way to build Avalonia apps, but one difficulty I've encountered is that there is apparently no way to manage the main window via the DSL. Some examples:
KeyBinding.gestureandKeyBinding.command, but there is no way to attach them to the main window. Instead, I ended up creating an invisible top-level Border control that grabs focus and implements the key bindings. Ugly, but it works.Window.titleproperty in the DSL. Instead, I've resorted to setting the title directly in myupdatefunction as a side-effect. Again, ugly but effective.Are there better ways of handling these issues?
Beta Was this translation helpful? Give feedback.
All reactions