mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-04-05 17:37:51 +08:00
24 lines
751 B
Plaintext
24 lines
751 B
Plaintext
<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>
|
|
@code
|
|
{
|
|
bool visible = false;
|
|
string text = "test";
|
|
void OnMouseDown(CPF.Input.MouseButtonEventArgs e)
|
|
{
|
|
text = "test" + visible;
|
|
visible = !visible;
|
|
}
|
|
} |