コード例 #1
0
 protected override async Task OnAfterRenderAsync(bool firstRender)
 {
     if (firstRender)
     {
         await NavigationInterception.EnableNavigationInterceptionAsync();
     }
 }
コード例 #2
0
 public Task OnAfterRenderAsync()
 {
     if (_navigationInterceptionEnabled)
     {
         return(Task.CompletedTask);
     }
     _navigationInterceptionEnabled = true;
     return(NavigationInterception.EnableNavigationInterceptionAsync());
 }
コード例 #3
0
        Task IHandleAfterRender.OnAfterRenderAsync()
        {
            if (!_navigationInterceptionEnabled)
            {
                _navigationInterceptionEnabled = true;
                return(NavigationInterception.EnableNavigationInterceptionAsync());
            }

            return(Task.CompletedTask);
        }
コード例 #4
0
        public async Task OnAfterRenderAsync()
        {
            if (!_navigationInterceptionEnabled)
            {
                _navigationInterceptionEnabled = true;
                await NavigationInterception.EnableNavigationInterceptionAsync();

                Refresh();
            }
        }
コード例 #5
0
ファイル: Switch.cs プロジェクト: andrewleader/DataGraph
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            if (!this.navigationInterceptionEnabled /* && ComponentContext.IsConnected*/)
            {
                this.navigationInterceptionEnabled = true;
                await SwitchContent(false);

                await NavigationInterception.EnableNavigationInterceptionAsync();
            }
        }
コード例 #6
0
#pragma warning disable CA1033
        Task IHandleAfterRender.OnAfterRenderAsync()
#pragma warning restore CA1033
        {
            if (!_navigationInterceptionEnabled)
            {
                _navigationInterceptionEnabled = true;
                return(NavigationInterception.EnableNavigationInterceptionAsync());
            }

            return(Task.CompletedTask);
        }
コード例 #7
0
        public Task OnAfterRenderAsync()
        {
            if (!_navigationInterceptionEnabled)
            {
                _navigationInterceptionEnabled = true;

                Assumes.Present(NavigationInterception);
                return(NavigationInterception.EnableNavigationInterceptionAsync());
            }

            return(Task.CompletedTask);
        }