WPF UpdateSourceTrigger

Introduction

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

Summary

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

Thanks

Kailash Chandra Behera

An IT Professional with 12 years experience in development life cycle in windows, service and Web based application using Microsoft.Net technologies. Proven record of developing all phases of projects in Microsoft.Net technology from initiation to closure aligning with the company's Business objectives to drive process improvements, competitive advantage and bottom-line gains. -> Good exposure of independently working and developing multiple projects ->Committed to efficient and effective development of projects in a fast-paced and deadline driver environment. Skill :- Develop and design projects in various technologies of Microsoft Technology. Total IT Experience- 13+

Previous Post Next Post

نموذج الاتصال