<Window x:Class="Flyad7_WPF.Window_InitArea" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window_InitArea" Height="300" Width="300" ResizeMode="NoResize"> <Grid> <TextBlock Height="23" HorizontalAlignment="Left" Margin="52,112,0,0" Name="textBlock1" Text="密码" VerticalAlignment="Top" /> <TextBox Height="23" HorizontalAlignment="Left" Margin="113,109,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" /> <Button Content="OK" Height="23" HorizontalAlignment="Left" Margin="97,161,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" /> <TextBlock Height="23" HorizontalAlignment="Left" Margin="52,67,0,0" Name="textBlock2" Text="警告: 会初始化序列码,使用码无效" VerticalAlignment="Top" Foreground="Red" /> </Grid> </Window>