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