mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-18 05:17:53 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
17 lines
366 B
Plaintext
17 lines
366 B
Plaintext
@namespace TestComponents
|
|
@using System.Diagnostics;
|
|
@using Sandbox.UI;
|
|
|
|
@if ( ShowFirstElement)
|
|
{
|
|
<div @ref=MyReferencedElement>@this</div>
|
|
}
|
|
<div @ref=MyReferencedMarkup>markup content</div>
|
|
|
|
@code
|
|
{
|
|
public Panel MyReferencedElement{ get; set; }
|
|
public Panel MyReferencedMarkup{ get; set; }
|
|
public bool ShowFirstElement { get; set; } = true;
|
|
}
|