I have a user control that i am using inside a DataTemplate, this UserControl contains a TextBox which is binded with Value p
DataTemplate
UserControl
TextBox
It looks like you are breaking binding when you set property value directly from code behind.
You shouldn't modify property that way. Use value coercion mechanism and validate input in the Coerce value callback.