I am trying to build a custom control that expands on the base TextBlock. I created a UserControl (NewTextBlock) that contains a Label and TextBlock wrapped within a WrapPanel. I also added new Dependency Properties (IsRequired, IsNumeric, MinValue,
MaxValue) and their validation routines to the NewTextBlock class. I can now add a NewTextBlock control to the UI and it has a label and new properties.
My problem is setting the binding for the NewTextBlock. It actually needs to be linked to the internal TextBlock. How would this be accomplished in C#?
View Complete Post