public PopupContent(UIElement content, IPopupContentAnimation openAnimation = null, IPopupContentAnimation closeAnimation = null) { Content = content; OpenAnimation = openAnimation; if (openAnimation != null) { openAnimation.SetTarget(content); openAnimation.Completed += (s, e) => OpeningCompleted(); } CloseAnimation = closeAnimation; if (closeAnimation != null) { closeAnimation.SetTarget(content); closeAnimation.Completed += (s, e) => ClosingCompleted(); } }
public VKWorkflowPopupContent(Type redirectPageType, object redirectPageParameter, IPopupContentAnimation openAnimation = null, IPopupContentAnimation closeAnimation = null) : base( new VKWorkflowDialog(redirectPageType, redirectPageParameter) { Width = 760, Height = 605 }, openAnimation ?? new ScalePopupOpenAnimation(), closeAnimation ?? new ScalePopupCloseAnimation()) { }