I have a frame with 2 buttons and label. What is the best practice to make sure the frame and controls inside resize according to the screen size?
Whatever I have tried
You could change the width and height according to your frame via binding Value Converters.
Binding Value Converters: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/data-binding/converters
Set the name to your Frame first.
Create the MyConverter. MyConverter.cs
public class MyConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return (double)value / 3.0;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
Set the StaticResource.
Binding to your button.