Hello, could someone help me to understand how to use the new Device.RuntimePlatform with this kind of call :
statusLayout = new StackLayout
{
Padding = new Thickness(Device.OnPlatform(10,0,0), 0, 0, 0),
Spacing = 0,
BackgroundColor = Color.Black,
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Center,
Orientation = StackOrientation.Vertical
};
I would appreciate to avoid making a really big switch case everywhere I use that.
Thanks!
Phil