Viewbox alternative for MAUI #6695
-
Viewbox on WPF auto scales all content to the size of the Viewbox. Does something similar on Maui exist yet? I'm facing the problem of drawing a menu bar using: Image (svg) While I can make the Image (svg) to scale, the Image Buttons don't. The size is based on the SVG/image which is kinda fixed. And specifying a custom heigh/width would also be fixed. On WPF I could easily put everything into the Viewbox and I'm done. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Try this (change the namespace to something that works for you):
I wrote it for my own use, using the code from previous iterations. Let me know how it works for you, and if you have any suggestions. John |
Beta Was this translation helpful? Give feedback.
-
plasss fix code ViewBox in win |
Beta Was this translation helpful? Give feedback.
-
The code works well on Android but does not work on Windows Please help |
Beta Was this translation helpful? Give feedback.
Try this (change the namespace to something that works for you):