设置Border.Child会抛出ArgumentException

时间:2012-05-29 07:44:57

标签: c# silverlight windows-phone-7 windows-phone-7.1

我在我的WP7应用程序中使用Glyphs控件(我还不知道它是否很重要,它是Glyphs)。通过将其设置为Border元素的子元素来使用Glyph。有时候 - 还不清楚 - Border.Child属性的setter何时抛出ArgumentException。该消息没有说任何特殊内容,也没有InnerException。调用堆栈如下:

at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
at System.Windows.DependencyObject.SetValue(DependencyProperty property, DependencyObject doh)
at System.Windows.Controls.Border.set_Child(UIElement value)

有没有办法调试或诊断可能存在的潜在问题?

0 个答案:

没有答案