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 PropertySet class.
Declaration
public PropertySet(Func<string, object, string> validationFunc)
Parameters
System.Func<System.String, System.Object, System.String>
validationFunc
The validation function. |
Fields
ShouldAddNullForNonMatchingValuesProperty
Represent the ShouldAddNullForNonMatchingValuesProperty attached property.
Declaration
public static readonly DependencyProperty ShouldAddNullForNonMatchingValuesProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Error
Gets an error message indicating what is wrong with this object.
Declaration
public string Error { get; }
Property Value
System.String
An error message indicating what is wrong with this object. The default is an empty string (""). |
Item[String]
Gets or sets the System.Object with the specified column name.
Declaration
public object this[string property] { get; set; }
Parameters
System.String
property
|
Property Value
System.Object
|
Methods
GetDynamicMemberNames()
Returns the enumeration of all dynamic member names.
Declaration
public override IEnumerable<string> GetDynamicMemberNames()
Returns
System.Collections.Generic.IEnumerable<System.String>
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.Windows.DependencyObject
element
The object to get the property for. |
Returns
System.Boolean
|
OnPropertyChanged(String)
Called when [property changed].
Declaration
protected void OnPropertyChanged(string fileName)
Parameters
System.String
fileName
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.Windows.DependencyObject
element
The object to set the property to. |
System.Boolean
value
|
TryGetMember(GetMemberBinder, out Object)
Provides the implementation for operations that get member values. Classes derived from the System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
Declaration
public override bool TryGetMember(GetMemberBinder binder, out object result)
Parameters
System.Dynamic.GetMemberBinder
binder
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.Dynamic.DynamicObject class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive. |
System.Object
result
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.Boolean
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.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
Declaration
public override bool TrySetMember(SetMemberBinder binder, object value)
Parameters
System.Dynamic.SetMemberBinder
binder
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.Dynamic.DynamicObject class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive. |
System.Object
value
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.Dynamic.DynamicObject class, the |
Returns
System.Boolean
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.ComponentModel.PropertyChangedEventHandler
|