Files
sbox-public/engine/Sandbox.Test/data/SimpleWithContent.razor.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

34 lines
1.3 KiB
C#

#pragma checksum ".\SimpleWithContent.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "83fd1745fe1f7de15f6a1005ed9811417f78bcbb"
// <auto-generated/>
#pragma warning disable 1591
#pragma warning disable 0162
namespace TestComponents
{
#line hidden
#line 2 ".\SimpleWithContent.razor"
using System.Diagnostics;
public partial class SimpleWithContent : global::Sandbox.UI.Panel
{
// Make sure everyone knows that we have a render tree
// (this is an optimization so we have a quick and definite way to check)
protected override string GetRenderTreeChecksum() => "83fd1745fe1f7de15f6a1005ed9811417f78bcbb";
#pragma warning disable 1998
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.AddLocation( ".\\SimpleWithContent.razor", 4, 0 );
__builder.OpenElement( 0, "div", null );
{
__builder.AddContent( 1, "this is a content element because it has " );
#line 4 ".\SimpleWithContent.razor"
__builder.AddContent(2, this);
__builder.AddContent( 3, " - which is dynamic content" );
}
__builder.CloseElement();
}
#pragma warning restore 1998
}
}
#pragma warning restore 0162
#pragma warning restore 1591