Exemplo n.º 1
0
 protected async Task OnWindowResizeAsync()
 {
     if (!In && Placement != Placement.Bottom && Placement != Placement.End)
     {
         await SlideHelper.SetSlideTranslateValueAsync(Placement, RefBack.Current);
     }
 }
Exemplo n.º 2
0
        protected override async Task OnAfterUpdateAsync()
        {
            await base.OnAfterUpdateAsync();

            if (!In)
            {
                await SlideHelper.SetSlideTranslateValueAsync(Placement, RefBack.Current);
            }
        }
Exemplo n.º 3
0
        protected async Task HandleExitAsync(IReference refback)
        {
            var transition = CreateTransition("transform", GetExitDuration(), TransitionDelay, TransitionEasing.EasingSharp);

            var styles = new Dictionary <string, object>
            {
                { "transition", transition },
                { "webkitTransition", transition }
            };

            await DomHelpers.SetStyleAsync(refback.Current, styles, trigger : true);

            await SlideHelper.SetSlideTranslateValueAsync(Placement, refback.Current);

            OnExit?.Invoke(refback);
        }
Exemplo n.º 4
0
        protected async Task HandleEnterAsync(IReference refback, bool appear)
        {
            await SlideHelper.SetSlideTranslateValueAsync(Placement, refback.Current);

            OnEnter?.Invoke(refback, appear);
        }