当前位置: 代码迷 >> Windows Mobile >> Windows Phone Toolkit 使用有关问题
  详细解决方案

Windows Phone Toolkit 使用有关问题

热度:315   发布时间:2016-04-25 07:41:58.0
Windows Phone Toolkit 使用问题
在项目里使用了 Windows Phone Toolkit 的控件
  然后调试的时候就出问题了。

  问题页为MainPage.g.i.cs

C# code
System.Windows.Markup.XamlParseException occurred  Message=Invalid attribute value controls:LongListSelector for property TargetType. [Line: 440 Position: 12]  LineNumber=440  LinePosition=12  StackTrace:       at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)       at System.Windows.Controls.Control.LoadXamlResource(Assembly source, String streamName, CultureInfo cultureInfo)       at System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle)       at MS.Internal.XcpImports.Application_LoadComponentNative(IntPtr pContext, IntPtr pComponent, UInt32 cUriStringLength, String uriString, UInt32 cXamlStrLength, Byte* pXamlStr)       at MS.Internal.XcpImports.Application_LoadComponent(INativeCoreTypeWrapper componentAsDO, String resourceLocator, UnmanagedMemoryStream stream, UInt32 numBytesToRead)       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)       at lijie4.MainPage.InitializeComponent()       at lijie4.MainPage..ctor()       at System.Reflection.RuntimeConstructorInfo.InternalInvoke(RuntimeConstructorInfo rtci, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)       at System.Reflection.RuntimeConstructorInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, StackCrawlMark& stackMark)       at System.Activator.InternalCreateInstance(Type type, Boolean nonPublic, StackCrawlMark& stackMark)       at System.Activator.CreateInstance(Type type)       at System.Windows.Navigation.PageResourceContentLoader.BeginLoad_OnUIThread(AsyncCallback userCallback, PageResourceContentLoaderAsyncResult result)       at System.Windows.Navigation.PageResourceContentLoader.<>c__DisplayClass4.<BeginLoad>b__0(Object args)       at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)       at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, StackCrawlMark& stackMark)       at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)       at System.Delegate.DynamicInvokeOne(Object[] args)       at System.MulticastDelegate.DynamicInvokeImpl(Object[] args)       at System.Delegate.DynamicInvoke(Object[] args)       at System.Windows.Threading.DispatcherOperation.Invoke()       at System.Windows.Threading.Dispatcher.Dispatch(DispatcherPriority priority)       at System.Windows.Threading.Dispatcher.OnInvoke(Object context)       at System.Windows.Hosting.CallbackCookie.Invoke(Object[] args)       at System.Windows.Hosting.DelegateWrapper.InternalInvoke(Object[] args)       at System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(IntPtr pHandle, Int32 nParamCount, ScriptParam[] pParams, ScriptParam& pResult)


  上面的是错误提示。。

  我现在是只有一所以那些控件就出问题。。。  

  求解

------解决方案--------------------
你敢说出是哪个控件么
------解决方案--------------------
应该是design模式下的问题,在design模式下有些toolkit的控件还存在问题,另外,你重装下toolkit,然后不要从工具栏-》右键-》选择项 那里选择没有默认出现在工具栏的那些控件,就可以了
  相关解决方案