Implemented interface member:
property
Layout
Microsoft.AspNetCore.Mvc.Razor.IRazorPage.Layout
49 writes to Layout
Microsoft.AspNetCore.Mvc.Razor.Test (48)
RazorPageTest.cs (2)
891p.Layout = "foo"; 908p.Layout = "bar";
RazorViewTest.cs (46)
161v.Layout = LayoutPath; 242v.Layout = LayoutPath; 367v.Layout = "/fake-layout-path"; 371v.Layout = layoutPath; 378v.Layout = null; 425Layout = layoutPath, 475Layout = layoutPath, 526v.Layout = layoutPath; 569v.Layout = layoutPath; 614v.Layout = layoutPath; 662v.Layout = LayoutPath; 721v.Layout = LayoutPath; 765v.Layout = "~/Shared/Layout1.cshtml"; 774v.Layout = "~/Shared/Layout2.cshtml"; 832v.Layout = "NestedLayout"; 842v.Layout = "Layout"; 896v.Layout = "~/Shared/Layout1.cshtml"; 906v.Layout = "~/Shared/Layout2.cshtml"; 959v.Layout = "~/Shared/Layout1.cshtml"; 973v.Layout = "~/Shared/Layout2.cshtml"; 1026v.Layout = LayoutPath; 1076v.Layout = "~/Shared/Layout1.cshtml"; 1086v.Layout = "~/Shared/Layout2.cshtml"; 1142v.Layout = "Layout1.cshtml"; 1156v.Layout = "Layout2.cshtml"; 1205v.Layout = "_Layout"; 1209v.Layout = "_Layout"; 1246v.Layout = "_Layout"; 1250v.Layout = "_Layout2"; 1257v.Layout = "_Layout"; 1309v.Layout = "~/Shared/Layout1.cshtml"; 1319v.Layout = "~/Shared/Layout2.cshtml"; 1378v.Layout = "layout-1"; 1434v.Layout = "layout-1"; 1486v.Layout = "test-layout"; 1519v.Layout = "~/Shared/Layout1.cshtml"; 1529v.Layout = "~/Shared/Layout2.cshtml"; 1563v.Layout = null; 1567v.Layout = expectedViewStart; 1572v.Layout = expectedPage; 1612v.Layout = null; 1617v.Layout = "_Layout.cshtml"; 1626v.Layout = "_Layout.cshtml"; 1670v.Layout = expected; 1675v.Layout = null; 1748var page = new TestableRazorPage(p => { p.Layout = LayoutPath; });
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\RazorPageAdapter.cs (1)
63set { _page.Layout = value; }
9 references to Layout
Microsoft.AspNetCore.Mvc.Razor (1)
RazorPageBase.cs (1)
694if (!IsLayoutBeingRendered && !string.IsNullOrEmpty(Layout))
Microsoft.AspNetCore.Mvc.Razor.Test (7)
RazorViewTest.cs (7)
376actualLayoutPath = v.Layout; 1561actualPage = v.Layout; 1571actualViewStart = v.Layout; 1609actualPage = v.Layout; 1625actualViewStart = v.Layout; 1666Assert.Null(v.Layout); 1674actual = v.Layout;
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\RazorPageAdapter.cs (1)
62get { return _page.Layout; }