How do I set the default text of a textbox with a Binding of RelativeSource Self
问题 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> 回答1: Add an event handler on the