“对象引用未设置为对象的实例"错误[WPF,VS 2010] [英] "Object reference not set to an instance of an object" error [WPF, VS 2010]
本文介绍了“对象引用未设置为对象的实例"错误[WPF,VS 2010]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个简单的窗口,在其中插入了Ribbon控件,但是发生以下错误:对象引用未设置为对象的实例".
I have a simple window where I inserted Ribbon control, but the following error occurs: "Object reference not set to an instance of an object".
我检查了所有引用一百次,但是没有结果.帮助摆脱这个错误!
I checked all references for hundred times, but resultless. Help to get rid of this error!
这里是XAML:
<Window x:Class="Bonus"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
Title="Bonus" Height="300" Width="300">
<Grid>
<r:Ribbon>
<r:RibbonTab Label="Home">
<r:RibbonGroup Name="grp">
</r:RibbonGroup>
</r:RibbonTab>
</r:Ribbon>
</Grid>
</Window>
推荐答案
您能给我发一份复制品吗?我会在microsoft.com上误操作
我将尝试对其进行调查,以查看异常的来源.
谢谢!
-Mike
Could you send me a repro? mishim at microsoft.com
I'll try looking into it to see where the exception is coming from.
Thanks!
- Mike
这篇关于“对象引用未设置为对象的实例"错误[WPF,VS 2010]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文