VDS: strange behaviour fpr property validation

VDS: strange behaviour fpr property validation

daniel_luescher
Advocate Advocate
144 Views
1 Reply
Message 1 of 2

VDS: strange behaviour fpr property validation

daniel_luescher
Advocate
Advocate

Hi everyone,

I want to validate the input of a text box, and I tryed to follow the VDS Tutorial chapter 12.

In File.xaml I defined:

<TextBox x:Name="txtDevProNr" Text="{Binding Prop[devProNr].Value}"...

The property "devProNr" is not a Vault property.

 

In Default.ps1 I defined:

$Prop["devProNr"].CustomValidation = { DevProNrValidation }

"DevProNrValidation" is the function with the defined validation.

 

The behaviour is the following: CustomValidation doesn't react to the change in the input of the text box, but reacts in the change of the category (I found no link between the text box and the category).

If the category is changed, CustomValidation checks if the text box is conform to the DevProNrValidation function.

 

Is there an explanation for this behaviour?

 

Thanks Daniel

 

VDS Version: 2026.0.1

0 Likes
Accepted solutions (1)
145 Views
1 Reply
Reply (1)
Message 2 of 2

Markus.Koechl
Autodesk
Autodesk
Accepted solution

 Hi @daniel_luescher : The tutorial consumes default XAML files/properties that use ValidatedBinding instead of Binding.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes