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 over 13 years of experience in the full software development life cycle for Windows, services, and web-based applications using Microsoft .NET technologies. Demonstrated expertise in delivering all phases of project development—from initiation to closure—while aligning with business objectives to drive process improvements, competitive advantage, and measurable bottom-line gains. Proven ability to work independently and manage multiple projects successfully. Committed to the efficient and effective development of projects in fast-paced, deadline-driven environments. Skills: Proficient in designing and developing applications using various Microsoft technologies. Total IT Experience: 13+ years

Previous Post Next Post

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