Open obeser opened 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.
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?