Namespace PaintDotNet.PropertySystem
Classes
- LinkValuesBasedOnBooleanRule<TValue, TProperty>
Defines a rule that forces the values of multiple properties to be equal when the value of another property is true (or false, if you choose). This is commonly used to implement a checkbox that just says "Linked".
- ReadOnlyBoundToBooleanRule
Defines a rule that binds the ReadOnly flag of property A to the value of boolean property B. A and B must be different properties.
- ReadOnlyBoundToValueRule<TValue, TProperty>
Defines a rule between two properties, Target and Source. When the Source property is equal to any of the given values, Target will be set to read-only, otherwise it will be set as writable.
If inverse is specified, then this is changed to: when the Source property is equal to any of the given values, Target will be set to writable, otherwise it will be set to read-only.
- SetTargetWhenSourceEqualsAnyValueRule
Defines a rule between two properties, Target and Source. When Source is equal to any of the given source values, Target will be set to the target value.
If inverse is specified, then this is changed to: when Source is equal to none of the given source values, Target will be set to the target value.
- SoftMutuallyBoundMinMaxRule<TValue, TProperty>
Defines a rule for two properties, A and B, such that A will always be less than or equal to B, and B will always be greater than or equal to A. If A is set to a new value that is greater than B, then B will be set equal to A. If B is set to a new value that is less than A, then A will be set equal to B.