In the Xamarin.Forms Navigation Drawer samples, the drawer width is set dynamically based on the screen width:
defaultDrawer.DrawerWidth = (float)(Core.SampleBrowser.ScreenWidth * 0.8);
But the way ScreenWidth is determined is hidden inside the Core.SampleBrowser library.
How can I set the drawer width according to the screen size? I can only get the screen width in pixels, but the DrawerWidth requires a float.