问题描述
WPFThename"SceneLayerNode"doesnotexistinthenamespace"clr-namespace:Globe.EntryPoint.Models.SceneLayer".命名空间存在而且可以运行,但是还是要报错publicclassSceneLayerNode:BindableBase{#regionPrivateFieldsprivatebool?_isChecked=false;privateScenescene=SuperMapObjectLocator.getInstance().GlobeObject.Scene;#endregionPrivateFields#regionPublicConstructorspublicSceneLayerNode(){Children=newList<SceneLayerNode>();}#endregionPublicConstructors#regionPublicPropertiespublicList<SceneLayerNode>Children{get;set;}publicstringDisplayName{get;set;}publicstringImg{get;set;}publicbool?IsChecked{get{return_isChecked;}set{SetProperty(refthis._isChecked,value);if(this.Name!=null){foreach(Layer3Dlayerinscene.Layers){stringlayerDomain=layer.Name.Split('$')[0];if(layerDomain==this.Name.Split('$')[0]){layer.IsVisible=this._isChecked??false;}}}}}publicstringName{get;set;}publicSceneLayerNodeParent{get;set;}#endregionPublicProperties}
解决方案
解决方案二:
SceneLayerNode这个类所属的命名空间是什么