Click or drag to resize

IsMandatoryAttribute Constructor (String, Boolean, String)

Initializes a new instance of IsMandatoryAttribute

Namespace:  Cauldron.XAML.Validation
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public IsMandatoryAttribute(
	string isEnabledPropertyName,
	bool isEnabledInverted,
	string errorMessageKey
)

Parameters

isEnabledPropertyName
Type: SystemString
The name of the property that can "turn off" the mandatory attribute. The property's Type has to be Boolean or nullable. In case of nullable; null is treated as false, otherwise true. If the property returns true, the IsMandatoryAttribute is enabled; otherwise disabled.
isEnabledInverted
Type: SystemBoolean
If true the validation outcome of isEnabledPropertyName is inverted. This means that in case of a nullable for example, null is treated as true.
errorMessageKey
Type: SystemString
The key of the localized error message string
See Also