public PageAnimation()
 {
     ScreenSize      = new Size(_deviceInfo.ScreenWidth, _deviceInfo.ScreenHeight);
     DefaultUIParams = new UIParams(ScreenSize, 1);
     StartUIForAppearingPageWhenPop     = DefaultUIParams;
     StartUIForDisappearingPageWhenPop  = DefaultUIParams;
     EndUIForAppearingPageWhenPop       = DefaultUIParams;
     EndUIForDisappearingPageWhenPop    = DefaultUIParams;
     StartUIForAppearingPageWhenPush    = DefaultUIParams;
     StartUIForDisappearingPageWhenPush = DefaultUIParams;
     EndUIForAppearingPageWhenPush      = DefaultUIParams;
     EndUIForDisappearingPageWhenPush   = DefaultUIParams;
 }
Exemple #2
0
 public static UIParams InvertTranslation(UIParams uiParams)
 {
     return(new UIParams(uiParams.ScreenSize, uiParams.Alpha, translationX: -uiParams.TranslationX, translationY: -uiParams.TranslationY));
 }