Last active
April 9, 2018 17:15
-
-
Save gskachkov/14a5488f613cb542186ae15813f88da6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainLayout : | |
BlazorComponent, ILayoutComponent, IComponent | |
{ | |
protected override void BuildRenderTree(...) | |
{ | |
base.BuildRenderTree(builder); | |
builder.OpenElement(1, "div"); | |
builder.AddAttribute(2, "class", "container-... | |
builder.AddContent(3, "\n "); | |
... | |
builder.OpenComponent<NavMenu>(10); | |
builder.CloseComponent(); | |
... | |
builder.AddContent(0x10, this.Body); | |
... | |
} | |
public RenderFragment Body { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment