private void ShowDialogEditor(PropertyItemValue value) { var property = value.ParentProperty; if (property == null) { return; } var editor = property.Editor; // TODO: Finish DialogTemplate implementation if (editor != null && !value.ParentProperty.IsReadOnly) // && editor.HasDialogTemplate) { value.Value = editor.ShowDialog(value.ParentProperty, value.Value, this); } }
/// <summary> /// Initializes a new instance of the <see cref="PropertyItem" /> class. /// </summary> /// <param name="parentValue">The parent value.</param> protected PropertyItem(PropertyItemValue parentValue) { _parentValue = parentValue; }
private void ShowDialogEditor(PropertyItemValue value) { var property = value.ParentProperty; if (property == null) return; var editor = property.Editor; // TODO: Finish DialogTemplate implementation if (editor != null && !value.ParentProperty.IsReadOnly) // && editor.HasDialogTemplate) { value.Value = editor.ShowDialog(value.ParentProperty, value.Value, this); } }