<Window x:Class="UserManager.frmLogin"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xceed="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
Title="登录界面" Height="317.955" Width="564" Background="LightYellow" Closing="Window_Closing_1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Name="label2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" FontSize="20" FontFamily="宋体" Background="SkyBlue" PreviewKeyDown="label2_PreviewKeyDown" Loaded="label2_Loaded">用 户 登 录</Label>
<Calendar Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></Calendar>
<StackPanel Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">
<Grid Height="240" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="1.5*"/>
</Grid.RowDefinitions>
<Label x:Name="label1" Grid.Row="1" FontSize="18" FontFamily="宋体" HorizontalContentAlignment="Center" Content="" />
<xceed:WatermarkTextBox Name="tbID" Grid.Row="2" Width="150" Height="25" Background="White" VerticalContentAlignment="Center" Watermark="请输入工号。。。" />
<xceed:WatermarkPasswordBox Name="tbPwd" Grid.Row="3" Width="150" Height="25" Background="White" VerticalContentAlignment="Center" Watermark="请输入密码。。。"/>
<Button Name="btnLogin" Grid.Row="4" Height="25" Width="100" VerticalAlignment="Bottom" FontSize="14" FontFamily="宋体" Click="btnLogin_Click">登 录</Button>
</Grid>
</StackPanel>
</Grid>
</Window>
编译没问题,一运行就报错