本文介绍了XamlParseException未处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人得到了这样的帮助..pls我需要一些帮助....
无法创建在程序集"Demo_Keyboard,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null"中定义的"Window1"实例.调用的目标已引发异常.标记文件"Demo_Keyboard; component/Window1.xaml"中的错误在第1行位置9.
hi anyone got excwption like this..pls i need some help....
Cannot create instance of ''Window1'' defined in assembly ''Demo_Keyboard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null''. Exception has been thrown by the target of an invocation. Error in markup file ''Demo_Keyboard;component/Window1.xaml'' Line 1 Position 9.
推荐答案
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
this.Topmost = true;
>>>HERE>>>> this.WindowGrid.Children.Add(new Window2(this));
}
}
这里是异常...我需要一个正确的漏洞来解决异常..
here im gettin the exception...i need jus one correct loophole to fin tis exception..
这篇关于XamlParseException未处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!