注意xaml中x:Class 是不是相应改了,下面2处标红的部分是否一致。
namespace RTP.ToolKits
{
/// <summary>
/// Interaction logic for CableLossCalWin.xaml
/// </summary>
public partial class CableLossCalWin : Window
{
public CableLossCalWin()
{
InitializeComponent();
}
}
}
<Window x:Class="RTP.ToolKits.CableLossCalWin"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="CableLossCalWin" Height="300" Width="300">
<Grid>
</Grid>
</Window>
时间: 2024-11-03 21:58:00