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".
I have a usercontrol with this on the UserControl:
On the UserControl I have a TabControl. Each TabItemEx (adds Counter, a string dp) has the following:
CustomerSv is a
ScrollViewerinside theTabItemExat 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".