Skip to content
Discussion options

You must be logged in to vote

https://docs.avaloniaui.net/docs/reference/controls/layouttransformcontrol allows building a zoom in the app. Having a "zoom setting" in the preferences combined with a scale transform applied via this control should do the job. I made a quick hack to zoom via "CTRL+Plus" and "CTRL+Minus" to see how the layout behaves:

SourceGit_1VqrQkc9VI.mp4

I added a LayoutTransformControl to the existing window control template in the styles and bound the LayoutTransform property to a ScaleTransform which I update on keystrokes.

The real feature would likely have the zoom/scaling stored in the settings. I think adding dynamic zooming via CTRL+Mousewheel and keystrokes CTRL+Plus, CTRL+Minus, C…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Danielku15
Comment options

Answer selected by love-linger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants