Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

#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