ValidationService.IsValidationContainer Attached Property
Allows you to to catch validation errors within a visual container. This is an attached property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
See GetIsValidationContainer(DependencyObject) and SetIsValidationContainer(DependencyObject, Boolean).
Returns
Type | Description |
---|---|
Boolean | true, to catch validation errors within a visual container; otherwise, false. |
Remarks
The code snippet below illustrates how to catch validation errors for the child elements of a LayoutControl.
<UserControl ... >
...
<dxlc:LayoutControl ... x:Name="container"
dxe:ValidationService.IsValidationContainer="True">
...
<dxe:TextEdit ... />
<Button Visibility="{Binding ElementName=w1, Path=(dxe:ValidationService.HasValidationError), Converter={dx:BooleanToVisibilityConverter Invert=True}}" ... />
</dxlc:LayoutControl>
</UserControl>
See Also