Hello
I am trying to convert this xaml textbox with validation into C# so that it can be dynamically created and populated from code. I am getting stuck creating the validation bindings. Can anyone provide any hints?
<TextBox Height="20" Width="200" >
<Binding RelativeSource="{x:Static RelativeSource.Self}" Path="Text" >
<Binding.ValidationRules>
<runtime:StandardTextBoxValidationRule/>
</Binding.ValidationRules>
</Binding>
</TextBox>