收到"确保事件失败"错误

时间:2018-04-20 19:00:09

标签: wpf xaml

   <Window x:Class="AppTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:AppTest"
        mc:Ignorable="d"
        Title="AppTest" Height="500" Width="1000" Background="Black">
   </Window>

尝试添加Loaded =&#34;&#34;使用事件处理程序,但出现了错误页面。我不知道我的XAML代码是否有错误。如果您有任何想法错误的原因/位置,您可以解释一下这个问题吗?

1 个答案:

答案 0 :(得分:0)

糟糕,忘了将我的命名空间从mainwindow.cs中大写

   namespace Apptest

   namespace AppTest

非常愚蠢的错误。

相关问题