private void Rebuild() { this.dataStoreProvider.Rebuild(); SceneNodeProperty property = this.DataContext as SceneNodeProperty; if (property != null) { this.editingProperty = property; this.editingProperty.PropertyReferenceChanged += new Microsoft.Expression.DesignSurface.Documents.PropertyReferenceChangedEventHandler(this.PropertyReferenceChanged); this.CurrentOperandValueType = property.GetValue() != null || this.doNotInferEditorToUse ? (this.dataStoreProvider.FindMatchDataStorePropertyEntry(property, (string)null) == null ? OperandValueType.Literal : OperandValueType.DataStore) : (property.SceneNodeObjectSet.ProjectContext.IsCapabilitySet(PlatformCapability.SupportPrototyping) ? OperandValueType.DataStore : OperandValueType.Literal); } else { this.editingProperty = (SceneNodeProperty)null; } this.doNotInferEditorToUse = false; this.OnPropertyChanged("Tooltip"); }