DEV Community

Xamarin.Forms - How to Use PancakeView

PeterMilovcik on January 29, 2020

An extended ContentView for Xamarin.Forms with rounded corners, borders, shadows and more! Source: https://github.com/sthewissen/Xamarin.Forms.P...
Collapse
 
christophe06410 profile image
Christophe06410

Hi Peter,

I love your control. This is very useful, thank you!
Recently, I stumbled upon an issue while trying to adapt a Xamarin form app to different screen sizes.
I use a custom ViewBox implementation that is greatly inspired from the WPF ViewBox.
Under the hood, it computes a scale factor and applies it to the inner controls.
It works great except for the PancakeView control (and regular button as well by the way).
Basically, the inner control is displayed only in half width and half height at top left corner (inside PancakeView).
Did you get a similar issue in the past?

Thanks for your help
Christophe