On the initial page load, I am setting it up so that the form is ready to enter a new record. For some custom data validators, I set the binding to itself. My question is how can I set the default text to something?
<TextBox>
<TextBox.Text>
<Binding RelativeSource="{RelativeSource Self}"
Path="Text"
UpdateSourceTrigger="LostFocus" >
<Binding.ValidationRules>
<validators:MyCustomValidators />
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
Add an event handler on the Loaded or Initialized event, and set the Text there.
And in the code behind :
EDIT:
XAML only solution :