async void HideInformationFrame(object sender, System.EventArgs e) { OpaqueContainer.FadeTo(0, 250); InformationFrame.TranslateTo(200, 0, 250, Easing.CubicIn); InformationFrame.RotateYTo(90, 250, Easing.CubicIn); await InformationFrame.FadeTo(0, 250); InformationFrame.IsVisible = false; OpaqueContainer.IsVisible = false; }
async Task ToggleOpaqueContainer(bool show, uint animationLength) { if (show) { OpaqueContainer.IsVisible = true; await OpaqueContainer.FadeTo(0.6, animationLength); } else { await OpaqueContainer.FadeTo(0, animationLength); OpaqueContainer.IsVisible = false; } }
async Task ShowInformationFrame() { if (InformationFrame.IsVisible) { return; } InformationFrame.IsVisible = true; OpaqueContainer.IsVisible = true; InformationFrame.RotateYTo(-90, 0); await InformationFrame.TranslateTo(-200, 0, 0); OpaqueContainer.FadeTo(0.5, 250); InformationFrame.FadeTo(1, 250); InformationFrame.RotateYTo(0, 250, Easing.CubicOut); await InformationFrame.TranslateTo(0, 0, 250, Easing.CubicOut); }