WPF UpdateSourceTrigger

Kailash Chandra Behera | Sunday, August 14, 2016


This article describes what is UpdateSourceTrigger in WPF and how many types of UpdateSourceTrigger available in WPF.

Getting Started

UpdateSourceTrigger is a property of WPF Binding. Like INotifyPropertyChanged Interface UpdateSourceTrigger is used to notify source in Data Binding whe changes happens in target. It decides when the data should get updated between WPF objects that are binded. There are 4 different modes by which UpdateSourceTrigger can be defined:-

  1. Default: -If it’s a text property then data is updated during lost focus and for normal properties data updates in property change event.
  2. PropertyChanged: - In this setting data is updated as soon as the value is changed.
  3. LostFocus: - In this setting data is updated as soon as lost focus event occurs.
  4. Explicit: -In this setting the data is updated manually. In other words to update data between two WPF object you need to call the below code.

Related Articles

  1. WPF Style
  2. WPF Triggers
  3. Command In MVVM
  4. WPF INotifyPropertyChanged Interface
  5. Data Validation in WPF
  6. Resource in WPF


In this article we have discussed what is UpdateSourceTrigger in WPF and type of UpdateSourceTrigger, hope this article may helpful to you.