Class PropertySet
A dynamic type that describes a set of properties.
Inheritance
Namespace: Telerik.Windows.Controls.Data.PropertyGrid
Assembly: Telerik.Windows.Controls.Data.dll
Syntax
public class PropertySet : DynamicObject, INotifyPropertyChanged, IDataErrorInfo
Constructors
PropertySet()
PropertySet(Func<String, Object, String>)
Initializes a new instance of the Property
Declaration
public PropertySet(Func<string, object, string> validationFunc)
Parameters
System. The validation function. |
Fields
ShouldAddNullForNonMatchingValuesProperty
Represent the ShouldAddNullForNonMatchingValuesProperty attached property.
Declaration
public static readonly DependencyProperty ShouldAddNullForNonMatchingValuesProperty
Field Value
System.
|
Properties
Error
Gets an error message indicating what is wrong with this object.
Declaration
public string Error { get; }
Property Value
System. An error message indicating what is wrong with this object. The default is an empty string (""). |
Item[String]
Gets or sets the System.
Declaration
public object this[string property] { get; set; }
Parameters
System.
|
Property Value
System.
|
Methods
GetDynamicMemberNames()
Returns the enumeration of all dynamic member names.
Declaration
public override IEnumerable<string> GetDynamicMemberNames()
Returns
System. A sequence that contains dynamic member names. |
GetShouldAddNullForNonMatchingValues(DependencyObject)
Gets the value of ShouldAddNullForNonMatchingValuesProperty attached property.
Declaration
public static bool GetShouldAddNullForNonMatchingValues(DependencyObject element)
Parameters
System. The object to get the property for. |
Returns
System.
|
OnPropertyChanged(String)
Called when [property changed].
Declaration
protected void OnPropertyChanged(string fileName)
Parameters
System. Name of the file. |
SetShouldAddNullForNonMatchingValues(DependencyObject, Boolean)
Sets the value of ShouldAddNullForNonMatchingValuesProperty attached property.
Declaration
public static void SetShouldAddNullForNonMatchingValues(DependencyObject element, bool value)
Parameters
System. The object to set the property to. |
System.
|
TryGetMember(GetMemberBinder, out Object)
Provides the implementation for operations that get member values. Classes derived from the System.
Declaration
public override bool TryGetMember(GetMemberBinder binder, out object result)
Parameters
System. Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the System. |
System. The result of the get operation. For example, if the method is called for a property, you can assign the property value to |
Returns
System. true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a run-time exception is thrown.). |
TrySetMember(SetMemberBinder, Object)
Provides the implementation for operations that set member values. Classes derived from the System.
Declaration
public override bool TrySetMember(SetMemberBinder binder, object value)
Parameters
System. Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member to which the value is being assigned. For example, for the statement sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the System. |
System. The value to set to the member. For example, for sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the System. |
Returns
System. true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a language-specific run-time exception is thrown.). |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.
|