I understand how to bind and handle Validation Errors when setting an event in XAML
as shown below, what I now need to do is Add the same Error Handler but totally in code with no XAML
as I add the controls at run time in code. I have searched but cannot find anything that point me in the right direction.
<Grid>
<TextBox Validation.Error="TextBox_Error" />
</Grid>