UpdateSourceTrigger enumeration

Applies to Windows and Windows Phone

Defines constants that indicate when a binding source is updated by its binding target in two-way binding.

Syntax


public enum UpdateSourceTrigger

Attributes

[Version(0x06030000)]
[WebHostHidden()]

Members

The UpdateSourceTrigger enumeration has these members.

MemberValueDescription
Default0

Use default behavior from the dependency property that uses the binding. In Windows Runtime, this evaluates the same as a value with PropertyChanged.

PropertyChanged1

The binding source is updated whenever the binding target value changes. This is detected automatically by the binding system.

Explicit2

The binding source is updated only when you call the BindingExpression.UpdateSource method.

Remarks

Note  The default UpdateSourceTrigger value is Default rather than PropertyChanged for legacy reasons. Previous XAML frameworks enabled a way to register a dependency property with a value that influenced what its default binding update behavior does. That dependency property behavior isn't implemented in the Windows Runtime.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Data
Windows::UI::Xaml::Data [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft