Click or drag to resize

IsMandatoryAttribute Constructor (String, 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,
	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.
errorMessageKey
Type: SystemString
The key of the localized error message string
See Also