@@ -66,7 +66,7 @@ internal AnimationContext GetAnimations(bool shouldPrepareDrawer = true)
6666 return this . GetSlideAlongAnimations ( ) ;
6767
6868 default :
69- return new AnimationContext ( ) ;
69+ return new AnimationContext ( ) { DrawerLocation = this . DrawerLocation , DrawerTransition = this . DrawerTransition } ;
7070 }
7171 }
7272
@@ -165,7 +165,9 @@ private AnimationContext GetPushAnimations()
165165 MainContentStoryBoard = this . mainContentStoryboard ,
166166 MainContentStoryBoardReverse = this . mainContentStoryboardReverse ,
167167 DrawerStoryBoardReverse = this . sideBarStoryboardReverse ,
168- DrawerStoryBoard = this . sideBarStoryboard
168+ DrawerStoryBoard = this . sideBarStoryboard ,
169+ DrawerLocation = this . DrawerLocation ,
170+ DrawerTransition = this . DrawerTransition
169171 } ;
170172 }
171173
@@ -259,7 +261,9 @@ private AnimationContext GetRevealAnimations()
259261 MainContentStoryBoard = this . mainContentStoryboard ,
260262 MainContentStoryBoardReverse = this . mainContentStoryboardReverse ,
261263 DrawerStoryBoardReverse = this . sideBarStoryboardReverse ,
262- DrawerStoryBoard = this . sideBarStoryboard
264+ DrawerStoryBoard = this . sideBarStoryboard ,
265+ DrawerLocation = this . DrawerLocation ,
266+ DrawerTransition = this . DrawerTransition
263267 } ;
264268 }
265269
@@ -400,7 +404,9 @@ private AnimationContext GetReverseSlideOutAnimations()
400404 MainContentStoryBoard = this . mainContentStoryboard ,
401405 MainContentStoryBoardReverse = this . mainContentStoryboardReverse ,
402406 DrawerStoryBoardReverse = this . sideBarStoryboardReverse ,
403- DrawerStoryBoard = this . sideBarStoryboard
407+ DrawerStoryBoard = this . sideBarStoryboard ,
408+ DrawerLocation = this . DrawerLocation ,
409+ DrawerTransition = this . DrawerTransition
404410 } ;
405411 }
406412
@@ -509,7 +515,9 @@ private AnimationContext GetScaleDownPusherAnimations()
509515 MainContentStoryBoard = this . mainContentStoryboard ,
510516 MainContentStoryBoardReverse = this . mainContentStoryboardReverse ,
511517 DrawerStoryBoardReverse = this . sideBarStoryboardReverse ,
512- DrawerStoryBoard = this . sideBarStoryboard
518+ DrawerStoryBoard = this . sideBarStoryboard ,
519+ DrawerLocation = this . DrawerLocation ,
520+ DrawerTransition = this . DrawerTransition
513521 } ;
514522 }
515523
@@ -651,7 +659,9 @@ private AnimationContext GetScaleUpAnimations()
651659 MainContentStoryBoard = this . mainContentStoryboard ,
652660 MainContentStoryBoardReverse = this . mainContentStoryboardReverse ,
653661 DrawerStoryBoardReverse = this . sideBarStoryboardReverse ,
654- DrawerStoryBoard = this . sideBarStoryboard
662+ DrawerStoryBoard = this . sideBarStoryboard ,
663+ DrawerLocation = this . DrawerLocation ,
664+ DrawerTransition = this . DrawerTransition
655665 } ;
656666 }
657667
@@ -718,7 +728,9 @@ private AnimationContext GetSlideInOnTopAnimations()
718728 MainContentStoryBoard = this . mainContentStoryboard ,
719729 MainContentStoryBoardReverse = this . mainContentStoryboardReverse ,
720730 DrawerStoryBoardReverse = this . sideBarStoryboardReverse ,
721- DrawerStoryBoard = this . sideBarStoryboard
731+ DrawerStoryBoard = this . sideBarStoryboard ,
732+ DrawerLocation = this . DrawerLocation ,
733+ DrawerTransition = this . DrawerTransition
722734 } ;
723735 }
724736
@@ -842,7 +854,9 @@ private AnimationContext GetSlideAlongAnimations()
842854 MainContentStoryBoard = this . mainContentStoryboard ,
843855 MainContentStoryBoardReverse = this . mainContentStoryboardReverse ,
844856 DrawerStoryBoardReverse = this . sideBarStoryboardReverse ,
845- DrawerStoryBoard = this . sideBarStoryboard
857+ DrawerStoryBoard = this . sideBarStoryboard ,
858+ DrawerLocation = this . DrawerLocation ,
859+ DrawerTransition = this . DrawerTransition
846860 } ;
847861 }
848862
0 commit comments