Skip to main content
All docs
V25.1
  • 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.v25.1.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