Example #1
0
        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);
            }
        }
Example #2
0
 /// <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;
 }
Example #3
0
		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);
			}	
		}