private async void BtCast_Clicked(object sender, EventArgs e) { await LoadReceivers(); FrChromecastDevices.IsVisible = true; await FrChromecastDevices.TranslateTo( 0, DeviceDisplayInfo.ScreenHeight - (chromecastDevices.Count * 50) - On <iOS>().SafeAreaInsets().Bottom - FrChromecastDevices.Padding.VerticalThickness - 100, 250); }
private async Task CloseReceiversList() { await FrChromecastDevices.TranslateTo(0, DeviceDisplayInfo.ScreenHeight + 5, 250); FrChromecastDevices.IsVisible = false; }