当WPF中xaml与相应的cs文件没有关联的修改
当WPF中xaml与相应的cs文件没有关联时,在csproj文件中修改配置
<Compile Include="xxxxxx\xxx.xaml.cs"> <DependentUpon>xxx.xaml</DependentUpon> </Compile>
当WPF中xaml与相应的cs文件没有关联时,在csproj文件中修改配置
<Compile Include="xxxxxx\xxx.xaml.cs"> <DependentUpon>xxx.xaml</DependentUpon> </Compile>