<Window x:Class="布局控件Canvas.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Canvas控件应用示例" Height="200" Width="300">
<Canvas>
<Label Canvas.Left="110" Canvas.Top="20">系统登录</Label>
<Label Canvas.Left="50" Canvas.Top="48">用户名:</Label>
<TextBox Canvas.Right="50" Canvas.Top="50" Width="130"/>
<Label Canvas.Left="50" Canvas.Top="83">密码:</Label>
<PasswordBox Canvas.Right="50" Canvas.Top="85" Width="130"/>
<Button Canvas.Left="110" Canvas.Bottom="20" Width="76" Click="Button_Click_1">登录</Button>
</Canvas>
</Window>
布局控件Canvas
最新推荐文章于 2021-05-29 15:52:17 发布