private async Task SetAcceptedStateAsync() { VisualStateManager.GoToState(this, "Accepted", true); RunResponseAnimations(); DeclineRoot.Fade(value: 0.0f, duration: 0, delay: 0).Start(); await AcceptRoot.Offset(offsetX : 0.0f, offsetY : 26.0f, duration : 800, delay : 0).StartAsync(); }
private void SetDeclinedState() { VisualStateManager.GoToState(this, "Declined", true); RunResponseAnimations(); AcceptRoot.Fade(value: 0.0f, duration: 0, delay: 0).Start(); DeclineRoot.Fade(value: 1.0f, duration: 0, delay: 0).Start(); DeclineRoot.Offset(offsetX: 0.0f, offsetY: -26.0f, duration: 800, delay: 0).Start(); }
private void RunNormalAnimations() { // Show //HeaderTextBlock.Fade(value: 1.0f, duration: 200, delay: 0).Start(); InviteesRoot.Fade(value: 1.0f, duration: 400, delay: 0).Start(); LunchInfoRoot.Fade(value: 1.0f, duration: 400, delay: 0).Start(); DeclineRoot.Fade(value: 1.0f, duration: 0, delay: 0).Start(); AcceptRoot.Fade(value: 1.0f, duration: 0, delay: 0).Start(); // Hide ResponseSubmittedRoot.Fade(value: 0.0f, duration: 400, delay: 0).Start(); // Move AcceptRoot.Offset(offsetX: 0.0f, offsetY: 0.0f, duration: 300, delay: 0).Start(); DeclineRoot.Offset(offsetX: 0.0f, offsetY: 0.0f, duration: 300, delay: 0).Start(); }