View Scaling in Xamarin Forms

View Scaling In the app I’m currently building, I wanted to create a virtual-sized canvas within the Window and change the overall scale according to the window size without breaking the layout inside. I explored various options. In WPF, it was convenient because you could adjust the scaling of the content display instantly by writing something like the below… I wondered if Xamarin had something similar, but… it doesn’t. <DockPanel> <DockPanel.RenderTransform> <ScaleTransform ScaleX="{Binding Scale}" ScaleY="{Binding Scale}" /> </DockPanel.RenderTransform> </DockPanel> About VisualElement’s Scale Property So, I wondered if controls have a property to set their own scale, and I found a property called “Scale”. ...

2018-10-16 · 2 min · 313 words · ayumax