private DialogPropertyValueEditor FindDialogPropertyValueEditor() { PropertyEntry propertyEntry = this.PropertyEntry; DialogPropertyValueEditor propertyValueEditor = (DialogPropertyValueEditor)null; if (propertyEntry != null) { propertyValueEditor = propertyEntry.PropertyValueEditor as DialogPropertyValueEditor; } if (propertyValueEditor != null) { return(propertyValueEditor); } if (propertyEntry != null && propertyEntry.HasStandardValuesInternal) { propertyValueEditor = this.DefaultStandardValuesPropertyValueEditor as DialogPropertyValueEditor; } return(propertyValueEditor ?? this.DefaultPropertyValueEditor as DialogPropertyValueEditor); }
private DataTemplate FindPropertyValueEditorTemplate(PropertyContainerEditMode editMode) { PropertyEntry propertyEntry = this.PropertyEntry; DataTemplate dataTemplate = (DataTemplate)null; if (propertyEntry != null && dataTemplate == null) { PropertyValueEditor propertyValueEditor = propertyEntry.PropertyValueEditor; if (propertyValueEditor != null) { dataTemplate = propertyValueEditor.GetPropertyValueEditor(editMode); } } if (dataTemplate != null) { return(dataTemplate); } if (propertyEntry != null && propertyEntry.HasStandardValuesInternal) { PropertyValueEditor propertyValueEditor = this.DefaultStandardValuesPropertyValueEditor; if (propertyValueEditor != null) { dataTemplate = propertyValueEditor.GetPropertyValueEditor(editMode); } } if (dataTemplate != null) { return(dataTemplate); } PropertyValueEditor propertyValueEditor1 = this.DefaultPropertyValueEditor; if (propertyValueEditor1 != null) { dataTemplate = propertyValueEditor1.GetPropertyValueEditor(editMode); } return(dataTemplate); }
public abstract bool ConsumesProperty(PropertyEntry propertyEntry);