File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed 
demo/aspnetcore6.0/v4/BlazorTransitionableRouteDemoServer Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11<CascadingAuthenticationState >
22    <Router  AppAssembly =" @typeof(App).Assembly"  >
33        <Found  Context =" routeData"  >
4-             <AuthorizeRouteView  RouteData =" @routeData"   DefaultLayout =" @typeof(MainLayout)"   />
4+             <LayoutView  Layout =" @typeof(MainLayout)"  >
5+                 <TransitionableRoutePrimary  RouteData =" @routeData"   ForgetStateOnTransition =" true"  >
6+                     <MyAuthorizeRouteView  DefaultLayout =" @typeof(MyViewLayout)"   />
7+                 </TransitionableRoutePrimary >
8+                 <TransitionableRouteSecondary  RouteData =" @routeData"   ForgetStateOnTransition =" true"  >
9+                     <MyAuthorizeRouteView  DefaultLayout =" @typeof(MyViewLayout)"   />
10+                 </TransitionableRouteSecondary >
11+             </LayoutView >
512            <FocusOnNavigate  RouteData =" @routeData"   Selector =" h1"   />
613        </Found >
714        <NotFound >
Original file line number Diff line number Diff line change 1+ @if  (Transition ? .RouteData  !=  null )
2+ { 
3+     <CascadingValue  Value =" Transition"  >
4+         <AuthorizeRouteView  RouteData =" @Transition.RouteData"   DefaultLayout =" @DefaultLayout"  ></AuthorizeRouteView >
5+     </CascadingValue >
6+ } 
7+ 
8+ @code  { 
9+     [CascadingParameter ]
10+     public  Transition  Transition  {  get ; set ; } 
11+ 
12+     [Parameter ]
13+     public  Type  DefaultLayout  {  get ; set ; } 
14+ } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments