DSL support for host window #468
Closed
brianberns
started this conversation in
Ideas
Replies: 2 comments
-
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.
0 replies
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.gesture
andKeyBinding.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.title
property in the DSL. Instead, I've resorted to setting the title directly in myupdate
function 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