Search This Blog

Tuesday, July 5, 2016

WPF DependencyProperty Register Default Value

WPF > DependencyPropertyRegister > Default Value



public static readonly DependencyProperty
UpdateSourceTriggerProperty = DependencyProperty.Register("UpdateSourceTrigger", typeof(UpdateSourceTrigger),
typeof(TextBox),
new FrameworkPropertyMetadata(UpdateSourceTrigger.LostFocus)); // add your default value here