日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > asp.net >内容正文

asp.net

[Map 3D开发实战系列] Map Resource Explorer 之四-- Map3D开发中的WPF

發布時間:2024/10/8 asp.net 117 豆豆
生活随笔 收集整理的這篇文章主要介紹了 [Map 3D开发实战系列] Map Resource Explorer 之四-- Map3D开发中的WPF 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

目錄

[Map 3D開發實戰系列] Map Resource Explorer 背景介紹--Kick off

[Map 3D開發實戰系列] Map Resource Explorer 之二-- 運行和調試

[Map 3D開發實戰系列] Map Resource Explorer 之三-- 添加AutoCAD風格的Palette界面

?

如果你已經隨著我們前面的文章開始創建基于WPF技術的Map 3D自定義界面的話,你可能會遇到一個比較棘手的問題,就是在Visual Studio 2008中的WPF編輯器中,可視化界面總是顯示錯誤,從而不能想Winform界面設計一樣拖控件進去。更麻煩的是兩xaml編輯器的智能提示都沒有了,這對我這樣的WPF菜鳥來說真是要命啊!

?

每次在Visual Studio 2008中打開xaml文件,總是顯示下面的錯誤信息:

An Unhandled Exception has occured.

?

A BadImageFormatException has been thrown while parsing the signature. This is likely due to lack of a generic context. Ensure genericTypeArguments and genericMethodArguments are provided and contain enough context.


?? at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
?? at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
?? at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
?? at System.Reflection.CustomAttribute.GetCustomAttributes(Assembly assembly, RuntimeType caType)
?? at System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit)
?? at MS.Internal.Xaml.ReflectionProjectNode.BuildSubsumption()
?? at MS.Internal.Xaml.ReflectionProjectNode.SubsumingNamespace(Identifier identifier)
?? at MS.Internal.Xaml.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context)
?? at MS.Internal.Xaml.XmlElement.FindElementType(PrefixScope parentScope, IParseContext context)
?? at MS.Internal.DocumentTrees.Markup.XamlSourceDocument.get_RootType()
?? at Microsoft.Windows.Design.Documents.Trees.MarkupDocumentTreeManager.get_RootType()
?? at Microsoft.Windows.Design.Documents.MarkupDocumentManager.CalculateLoadErrorState()
?? at Microsoft.Windows.Design.Documents.MarkupDocumentManager.get_LoadState()
?? at MS.Internal.Host.PersistenceSubsystem.Load()
?? at MS.Internal.Host.Designer.Load()
?? at MS.Internal.Designer.VSDesigner.Load()
?? at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
?? at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
?? at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
?? at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
?? at MS.Internal.Host.Isolation.IsolatedDesigner.Load()
?? at MS.Internal.Designer.DesignerPane.LoadDesignerView()

Could not load file or assembly 'acmgd, Version=18.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.


?? at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
?? at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
?? at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)

?

這其實是Map 3D 2011的一個bug。前面的文章中介紹了,我們要開發Map 3D 應用程序,需要添加下列的Map 3D相關引用:

Map 3D相關程序集:

Autodesk.Map.Platform.dll

Autodesk.Map.Platform.Core.dll

Autodesk.Map.Platform.Utils.dll;

Autodesk.Gis.Map.Shared.dll;

OSGeo.MapGuide.Foundation.dll

OSGeo.MaoGuide.PlatformBase.dll

?

但引用的上面的Map 3D相關程序集,就會造成Visual Studio 的WPF編輯器工作不正常。當然你可以使用Blend,XamlPad等其他工具來編輯Xaml界面,但對于我們簡單的界面設計來說,Blend有點大材小用,而且學習這個軟件也得花不少時間。

?

解決的辦法就是在設計界面是,暫時把上面的Map 3D相關程序集的引用移除,這樣WPF界面編輯器就可以正常工作了。編輯好了界面,需要編譯運行時,再重新把這些程序集的引用加進來就行了。Visual Studio引用對話框的Recent選項卡可以快速的幫我找到最近用過的程序集,還是很方便的。

?

好了,先到這里,現在你可以開始設計你的基于Map 3D應用程序WPF界面了。

?

Cheers,

峻祁連

轉載于:https://www.cnblogs.com/junqilian/archive/2011/02/01/1948618.html

總結

以上是生活随笔為你收集整理的[Map 3D开发实战系列] Map Resource Explorer 之四-- Map3D开发中的WPF的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 黄片毛片| 日产av在线播放 | 天天爽天天射 | 日日噜噜夜夜狠狠久久丁香五月 | 中文字幕乱码人妻无码久久95 | 丰满人妻熟女aⅴ一区 | 97超碰在线播放 | 日免费视频| 中文字幕在线观看av | 欧美性猛交99久久久久99按摩 | 午夜视频福利网站 | 91久久久精品 | 琪琪色在线视频 | 天天干天天操天天摸 | 好色先生视频污 | 日批免费在线观看 | 极品另类 | 欧美黄色免费视频 | 亚洲精品高清视频在线观看 | 草视频在线观看 | 国产精品.xx视频.xxtv | 偷拍一区二区三区 | 久青草国产在线 | 九一精品视频 | 欧美精品一区二区成人 | 欧美福利视频一区二区 | 国产又黄又湿 | 韩国三级久久 | 色婷婷久久久亚洲一区二区三区 | 久操视频在线观看 | 三级国产视频 | 亚洲国产成人精品一区二区三区 | aaa大片十八岁禁止 中文字幕亚洲在线观看 | 人人妻人人藻人人爽欧美一区 | 爱爱视频免费看 | 欧美精品在线免费 | 国产无遮挡又黄又爽在线观看 | 日日射视频 | 日本一区二区三区精品视频 | 国产精品久久久久久久久久直播 | 免费一区二区在线观看 | 精品网站999 | 神马午夜伦理影院 | 国产无码精品视频 | 久久精品国产一区二区 | 国产精品无码久久av | 日本黄色性视频 | 91theporn国产在线观看 | 猛1被调教成公厕尿便失禁网站 | 欧美在线一二三区 | 国产精品99久久久久久www | 男女男精品视频 | 91精品欧美 | 亚洲成人免费在线视频 | 久久色视频 | 欧美日韩一区二区三区在线播放 | 久久久久久久久久福利 | 成年人小视频在线观看 | 天堂视频免费在线观看 | 亚洲天堂影院 | 91丨porny丨在线 | 97在线免费视频 | 欧洲一级片 | 亚洲av成人精品午夜一区二区 | 精品乱子伦一区二区三区 | 日本在线有码 | 欧美91在线| 欧美色图网站 | 毛片成人网 | 亚洲九九色 | 国产精品久久久久91 | 日韩操操 | 亚洲aaaaaaa | 亚欧中文字幕 | 91免费版黄色 | 一区二区三区视频在线观看 | 久久妇女 | 日韩在线视频二区 | 国产精品国产自产拍高清av | 欧美国产高清 | 日本亚洲黄色 | 法国空姐电影在线观看 | 欧美人与性动交g欧美精器 国产在线视频91 | 欧美三区四区 | 黄色高清网站 | 日本人做受免费视频 | 中文字幕国产日韩 | 国产午夜电影在线观看 | 日韩不卡在线视频 | 国产jjizz一区二区三区视频 | 在线看片你懂得 | 美国黄色一级视频 | 亚洲av毛片| 日韩免费二区 | 奇米一区二区三区 | 一区二区传媒有限公司 | 极品白嫩丰满美女无套 | 麻豆专区| 国产三级a |