/// <summary> /// Replace Dialog and without trig any event /// </summary> /// <param name="dialog"></param> public void ReplaceDialog(PopupDialog dialog) { CloseFrame(); if (dialog == null) { return; } if (dialog.WindowStatus == PopupDialog.Status.Close) { return; } //ScaleIn.Begin(); CurrentDialog = dialog; ChangeAnimationDuration(CurrentDialog.ScaleAnimationTime); ScaleIn.Begin(); ScaleIn.Seek(CurrentDialog.ScaleAnimationTime); ShowFrame(); }
public void Show(PopupDialog dialog) { if (dialog != CurrentDialog) { Close(CurrentDialog); } CurrentDialog = dialog; foreach (DoubleAnimation animation in ScaleIn.Children) { animation.Duration = new Duration(CurrentDialog.ScaleAnimationTime); } foreach (DoubleAnimation animation in ScaleOut.Children) { animation.Duration = new Duration(CurrentDialog.ScaleAnimationTime); } CurrentDialog.WindowStatus = PopupDialog.Status.Show; CurrentDialog.Page.OnLoaded(); CurrentDialog.OnOpenInvoke(); ShowFrame(); ScaleIn.Begin(); }