locked
自定义用户控件 导入到Mainpage.xmal中报错 RRS feed

  • 问题

  • 我写了个自定义控件,里头是对图片的一些存取显示,用到了XNA.framwork架构。

    而后自定义用户控件 导入到Mainpage.xmal中XMAL会报错

    An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.

       at Microsoft.Windows.Design.Platform.SilverlightViewProducer.OnUnhandledException(Object sender, ViewUnhandledExceptionEventArgs e)
       at Microsoft.Expression.Platform.Silverlight.SilverlightPlatformSpecificView.OnUnhandledException(Object sender, ViewUnhandledExceptionEventArgs args)
       at Microsoft.Expression.Platform.Silverlight.Host.SilverlightImageHost.<>c__DisplayClass1.<Application_UnhandledException>b__0(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    但是能运行,是不是因为这个usercontrol里用到了XNA.FRAMWORK。请高手指点


    nananana~shua
    2011年4月16日 8:39

答案