2024-01-09 00:39:58 +08:00
|
|
|
<WindowFrame MaximizeBox="true" Width='"100%"' Height="@("100%")">
|
|
|
|
<StackPanel Background="#f00" Width='"100%"' Height="@("100%")">
|
|
|
|
<Button Width="80" Height="30" MouseDown="OnMouseDown" Content="text">
|
|
|
|
</Button>
|
|
|
|
<CheckBox Content="12"></CheckBox>
|
|
|
|
@if (visible)
|
|
|
|
{
|
|
|
|
<Panel Background="#0f0" Width="20" Height="30" MarginLeft="10"></Panel>
|
|
|
|
}
|
|
|
|
<Button>1234dsggs</Button>
|
|
|
|
<TextBox Text="@text"></TextBox>
|
|
|
|
<Button><CheckBox></CheckBox></Button>
|
|
|
|
</StackPanel>
|
|
|
|
</WindowFrame>
|
2024-01-08 17:37:26 +08:00
|
|
|
@code
|
|
|
|
{
|
|
|
|
bool visible = false;
|
2024-01-08 20:55:43 +08:00
|
|
|
string text = "test";
|
2024-01-09 00:39:58 +08:00
|
|
|
void OnMouseDown(CPF.Input.MouseButtonEventArgs e)
|
2024-01-08 17:37:26 +08:00
|
|
|
{
|
2024-01-08 20:55:43 +08:00
|
|
|
text = "test" + visible;
|
2024-01-08 17:37:26 +08:00
|
|
|
visible = !visible;
|
|
|
|
}
|
|
|
|
}
|