Back to Devexpress

BaseEdit.AllowUpdateTwoWayBoundPropertiesOnSynchronization Property

wpf-devexpress-dot-xpf-dot-editors-dot-baseedit-665a26d3.md

latest2.4 KB
Original Source

BaseEdit.AllowUpdateTwoWayBoundPropertiesOnSynchronization Property

Prevents the BaseEdit.EditValue and LookUpEditBase.SelectedItem binding source from being updated during synchronization with the LookUpEditBase.ItemsSource.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool AllowUpdateTwoWayBoundPropertiesOnSynchronization { get; set; }
vb
Public Property AllowUpdateTwoWayBoundPropertiesOnSynchronization As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true, to allow updating the binding source of two-way bound properties during synchronization; otherwise, false.

|

Remarks

When the editor’s LookUpEditBase.ItemsSource is updated, the editor checks if an item stored within the BaseEdit.EditValue exists in the items source. If a corresponding item cannot be found in the item source, BaseEdit.EditValue is set to null. To disable resetting the BaseEdit.EditValue on clearing the items source, set the AllowUpdateTwoWayBoundPropertiesOnSynchronization property to false.

The AllowUpdateTwoWayBoundPropertiesOnSynchronization property affects the following editors:

See Also

BaseEdit Class

BaseEdit Members

DevExpress.Xpf.Editors Namespace