Razor支持

This commit is contained in:
小红帽
2024-01-08 20:55:43 +08:00
parent f86e000984
commit a7c1ac873c
58 changed files with 3921 additions and 19 deletions

View File

@@ -1,17 +1,20 @@

<Panel Background="#f00" Width="100" Height="100">
<Panel Background="#00f" Width="20" Height="30" MouseDown="OnMouseDown">
</Panel>
<StackPanel Background="#f00" Width="500" Height="500">
<Button Width="80" Height="30" Click="OnMouseDown" Content="text">
</Button>
<CheckBox Content="12"></CheckBox>
@if (visible)
{
<Panel Background="#0f0" Width="20" Height="30" MarginLeft="10"></Panel>
}
</Panel>
</StackPanel>
@code
{
bool visible = false;
string text = "test";
void OnMouseDown()
{
text = "test" + visible;
visible = !visible;
}
}