xBimTeam / XbimWindowsUI

The home of XbimXplorer and WPF components for your desktop BIM applications.
Other
252 stars 149 forks source link

Xbim.WinformsSample DrawingControl3D Unable To Run #115

Open obeser opened 5 years ago

obeser commented 5 years ago

While I was trying to run Xbim.WinformsSample, GetValue & SetValue functions are not recognized by Visual Studio and get "The name "GetValue" does not exist in the current context" error.

public ObjectDataProvider ModelProvider { get { return (ObjectDataProvider) GetValue(ModelProviderProperty); } private set { SetValue(ModelProviderProperty, value); } } At the same time DrawingControl element is also unrecognized and I get The name "DrawingControl" does not exist in the current context"

public IPersistEntity SelectedElement { get { return DrawingControl.SelectedEntity; } set { DrawingControl.SelectedEntity = value; } }

Would anybody has any idea, why I got those errors?

CBenghi commented 5 years ago

Visual studio sometimes has problems resolving classes at runtime. Try compiling the solution. Then closing and re-opening Visual Studio. If your problem has to do with missing Nuget dependencies VS would not compile, otherwise you should be able to have the solution working after the VS restart.