private async Task ToggleEditIssuePanelVisibility(bool visible) { if (visible) { ViewModel.NewIssueBodyText = ViewModel.Issue.Body; ViewModel.NewIssueTitleText = ViewModel.Issue.Title; EditIssueMarkdownEditorControl.SetMarkdowntext(ViewModel.NewIssueBodyText); EditIssueDialog.Opacity = 0; EditIssueDialog.Visibility = Visibility.Visible; await EditIssueDialog.Animation() .Opacity(0, 1) .Scale(1.1f, 1, Easing.SineEaseInOut) .Duration(150) .StartAsync(); } else { await EditIssueDialog.Animation() .Opacity(1, 0) .Scale(1, 1.1f, Easing.SineEaseInOut) .Duration(150) .StartAsync(); EditIssueDialog.Visibility = Visibility.Collapsed; } }
private async Task ToggleEditIssuePanelVisibility(bool visible) { if (visible) { ViewModel.NewIssueBodyText = ViewModel.Issue.Body; ViewModel.NewIssueTitleText = ViewModel.Issue.Title; EditIssueMarkdownEditorControl.SetMarkdowntext(ViewModel.NewIssueBodyText); EditIssueDialog.SetVisualOpacity(0); EditIssueDialog.Visibility = Visibility.Visible; await EditIssueDialog.StartCompositionFadeScaleAnimationAsync(0, 1, 1.1f, 1, 150, null, 0, EasingFunctionNames.SineEaseInOut); } else { await EditIssueDialog.StartCompositionFadeScaleAnimationAsync(1, 0, 1, 1.1f, 150, null, 0, EasingFunctionNames.SineEaseInOut); EditIssueDialog.Visibility = Visibility.Collapsed; } }