Is there a universal way to find the center of the screen, e.g. horizontally to display a button?
There is a button with options:
Button.width = 400;
Button.height = 50;
Origin = Top-left;
So when using this formula, the button is not always displayed in the center:
Button.X = PlatformInfo.CanvasDeviceWidth / 2 - Button.Width / 2
how to determine the center of the screen of any device?