Skip to content

(validation:Scope.Node).Children.Count doesn't update #21

@cbordeman

Description

@cbordeman

I have a usercontrol with this on the UserControl:

    validation:Scope.ForInputTypes="{validation:InputTypes {x:Type TextBox},
                                                           {x:Type ComboBox},
                                                           {x:Type mui:ComboBoxEx},
                                                           {x:Type mui:TextBoxEx},
                                                          ...

On the UserControl I have a TabControl. Each TabItemEx (adds Counter, a string dp) has the following:

Counter="{Binding (validation:Scope.Node).Children.Count, ElementName=CustomerSv}"

CustomerSv is a ScrollViewer inside the TabItemEx at the top level that contains all myu controls.

When I press OK, validation happens in my view model and the controls turn red as expected. However, Counter only ever shows "0" or "1". There are lots of invalid controls so the number should be > 1.

As I fix/update field values, the number goes to "0" properly, but never goes higher than "1".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions