MergedPropertyModel Class
Represents a property grid property IDataModel that merges a property from multiple data objects.
public class MergedPropertyModel : CachedPropertyModelBase, IPropertyModel, IDataModel, IDisposable
- Inheritance:
- object ObservableObjectBase DataModelBase PropertyModelBase CachedPropertyModelBase object
- Implements:
- IPropertyModel IDataModel IDisposable
Constructors
MergedPropertyModel(IList<IPropertyModel>)
Initializes an instance of the class.
public MergedPropertyModel(IList<IPropertyModel> propertyModels)
| Parameter | Type | Description |
|---|---|---|
| propertyModels | IList<IPropertyModel> | The collection of IPropertyModel objects to merge. |
Properties
CanResetValueCore
Indicates whether the property can be reset to its default value.
protected override bool CanResetValueCore { get; }
Property Value
- bool:
trueif the property can be reset to its default value; otherwise,false.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
CategoryCore
A category for the property.
protected override string? CategoryCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ConverterCore
The TypeConverter to use for the property.
protected override TypeConverter? ConverterCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
DescriptionCore
The description of the data model, often displayed in a summary area or a tooltip.
protected override string? DescriptionCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
DisplayNameCore
The name to use when displaying the data model, often the same as Name.
protected override string? DisplayNameCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
HasStandardValues
Indicates whether the property supports StandardValues.
public override bool HasStandardValues { get; }
Property Value
- bool:
trueif the property supports StandardValues; otherwise,false.
IsImmutableCore
Indicates whether the Value's child properties, if any, are capable of being edited.
protected override bool IsImmutableCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
IsLimitedToStandardValuesCore
Indicates whether the Value property can only be set to one of the values defined by the StandardValues property.
protected override bool IsLimitedToStandardValuesCore { get; }
Property Value
- bool:
trueif the Value property can only be set to one of the values defined by the StandardValues property; otherwise,false.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
IsMergeableCore
Indicates whether the property can be merged when presenting multiple objects.
protected override bool IsMergeableCore { get; }
Property Value
- bool:
trueif the property can be merged when presenting multiple objects; otherwise,false.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
IsModifiedCore
Indicates whether the data model has been modified.
protected override bool IsModifiedCore { get; }
Property Value
- bool:
trueif the data model has been modified; otherwise,false.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
IsValueReadOnlyCore
Indicates whether the Value property is read-only.
protected override bool IsValueReadOnlyCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
NameCore
The name of the data model.
protected override string? NameCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
NameTemplateCore
The DataTemplate to use for showing the property display name.
protected override DataTemplate? NameTemplateCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
NameTemplateKeyCore
The resource key that references a DataTemplate to use for showing the property display name.
protected override object? NameTemplateKeyCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
NameTemplateSelectorCore
The DataTemplateSelector to use for showing the property display name.
protected override DataTemplateSelector? NameTemplateSelectorCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ShouldNotifyParentOnValueChangeCore
Indicates whether the property should notify its parent property when the Value changes.
protected override bool ShouldNotifyParentOnValueChangeCore { get; }
Property Value
- bool:
trueif the property should notify its parent property when the Value changes; otherwise,false.
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
SortImportanceCore
A DataModelSortImportance that indicates the sort importance of this data model.
protected override DataModelSortImportance SortImportanceCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
SortOrderCore
A numeric sort order for sorting the data model within other data models of the same sort importance.
protected override int SortOrderCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
StandardValuesAsStrings
The standard list of values for the ValueAsString property as a list of strings.
public override IEnumerable<string>? StandardValuesAsStrings { get; }
Property Value
StandardValuesCore
The standard list of values for the Value property.
protected override IEnumerable? StandardValuesCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
TargetCore
The target object that owns the property.
protected override object? TargetCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
TargetType
ValueCore
The property value.
protected override object? ValueCore { get; set; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ValueTemplateCore
The DataTemplate to use for use for editing the property value.
protected override DataTemplate? ValueTemplateCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ValueTemplateKeyCore
The resource key that references a DataTemplate to use for editing the property value.
protected override object? ValueTemplateKeyCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ValueTemplateKindCore
The DefaultValueTemplateKind that specifies a default value cell template to use for editing the property value.
protected override DefaultValueTemplateKind ValueTemplateKindCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ValueTemplateSelectorCore
The DataTemplateSelector to use for use for editing the property value.
protected override DataTemplateSelector? ValueTemplateSelectorCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ValueTypeCore
protected override Type? ValueTypeCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
ValuesCore
The property values, of which there will only be more than one if this is a merged property.
protected override IList<object?> ValuesCore { get; }
Property Value
Remarks
This property does the actual work of retrieving the value for the cached version of this property.
Methods
Dispose(bool)
Releases the unmanaged resources used by the object and optionally releases the managed resources.
protected override void Dispose(bool disposing)
| Parameter | Type | Description |
|---|---|---|
| disposing | bool |
|
Remarks
This method is called by the public Dispose method and the Finalize method.
Dispose invokes this method with the disposing parameter set to true.
Finalize invokes this method with disposing set to false.
GetErrorMessages(string?)
Returns the error messages for the target object or one of its properties.
protected override IEnumerable GetErrorMessages(string? columnName)
| Parameter | Type | Description |
|---|---|---|
| columnName | string | The name of the property to examine, or |
Returns
- IEnumerable:
The error messages that are applicable, if any.
ResetValue()
Resets the property value to its default value.
public override void ResetValue()
Inherited Members
- CachedPropertyModelBase.OnPropertyChanged(PropertyChangedEventArgs)
- CachedPropertyModelBase.CanAddChild
- CachedPropertyModelBase.CanAddChildCore
- CachedPropertyModelBase.CanRemove
- CachedPropertyModelBase.CanRemoveCore
- CachedPropertyModelBase.CanResetValue
- CachedPropertyModelBase.Category
- CachedPropertyModelBase.Converter
- CachedPropertyModelBase.Description
- CachedPropertyModelBase.DescriptionResolved
- CachedPropertyModelBase.DisplayName
- CachedPropertyModelBase.DisplayNameResolved
- CachedPropertyModelBase.HasStandardValuesCore
- CachedPropertyModelBase.IsImmutable
- CachedPropertyModelBase.IsLimitedToStandardValues
- CachedPropertyModelBase.IsMergeable
- CachedPropertyModelBase.IsModified
- CachedPropertyModelBase.IsModifiedResolved
- CachedPropertyModelBase.IsValueReadOnly
- CachedPropertyModelBase.Name
- CachedPropertyModelBase.NameResolved
- CachedPropertyModelBase.NameTemplate
- CachedPropertyModelBase.NameTemplateKey
- CachedPropertyModelBase.NameTemplateSelector
- CachedPropertyModelBase.ShouldNotifyParentOnValueChange
- CachedPropertyModelBase.SortImportance
- CachedPropertyModelBase.SortImportanceResolved
- CachedPropertyModelBase.SortOrder
- CachedPropertyModelBase.SortOrderResolved
- CachedPropertyModelBase.StandardValues
- CachedPropertyModelBase.StandardValuesAsStringsCore
- CachedPropertyModelBase.Target
- CachedPropertyModelBase.Value
- CachedPropertyModelBase.ValueAsString
- CachedPropertyModelBase.ValueAsStringCore
- CachedPropertyModelBase.Values
- CachedPropertyModelBase.ValueTemplate
- CachedPropertyModelBase.ValueTemplateKey
- CachedPropertyModelBase.ValueTemplateKind
- CachedPropertyModelBase.ValueTemplateSelector
- CachedPropertyModelBase.ValueType
- PropertyModelBase.AddChild()
- PropertyModelBase.ConvertFromString(string)
- PropertyModelBase.ConvertToString(object)
- PropertyModelBase.CycleToNextStandardValue()
- PropertyModelBase.RaiseChildPropertyAddedEvent(PropertyModelChildChangeEventArgs)
- PropertyModelBase.RaiseChildPropertyAddingEvent(PropertyModelChildChangeEventArgs)
- PropertyModelBase.RaiseChildPropertyRemovedEvent(PropertyModelChildChangeEventArgs)
- PropertyModelBase.RaiseChildPropertyRemovingEvent(PropertyModelChildChangeEventArgs)
- PropertyModelBase.RaisePropertyValueChangedEvent(PropertyModelValueChangeEventArgs)
- PropertyModelBase.RaisePropertyValueChangingEvent(PropertyModelValueChangeEventArgs)
- PropertyModelBase.Refresh(PropertyRefreshReason)
- PropertyModelBase.Remove()
- PropertyModelBase.AddChildCommand
- PropertyModelBase.CanAddChildResolved
- PropertyModelBase.CanRemoveResolved
- PropertyModelBase.CanResetValueResolved
- PropertyModelBase.ConverterResolved
- PropertyModelBase.IsHostReadOnly
- PropertyModelBase.IsImmutableResolved
- PropertyModelBase.IsReadOnly
- PropertyModelBase.IsValueReadOnlyResolved
- PropertyModelBase.NamePropertyEditor
- PropertyModelBase.RemoveCommand
- PropertyModelBase.ResetValueCommand
- PropertyModelBase.ShouldNotifyParentOnValueChangeResolved
- PropertyModelBase.StandardValuesDisplayMemberPath
- PropertyModelBase.StandardValuesSelectedValuePath
- PropertyModelBase.StandardValuesResolved
- PropertyModelBase.TargetResolved
- PropertyModelBase.ValuePropertyEditor
- PropertyModelBase.ValueResolved
- PropertyModelBase.ValueTypeResolved
- DataModelBase.Dispose()
- DataModelBase.RefreshChildren()
- DataModelBase.ToString()
- DataModelBase.CanAutoDispose
- DataModelBase.Children
- DataModelBase.IsExpanded
- DataModelBase.IsRoot
- DataModelBase.IsSelected
- DataModelBase.Parent
- DataModelBase.SortComparer
- DataModelBase.Tag
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()