Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public abstract bool ConsumesProperty(PropertyEntry propertyEntry);