Back to Devexpress

LookUpEditBase.IsSynchronizedWithCurrentItem Property

wpf-devexpress-dot-xpf-dot-editors-dot-lookupeditbase-ca6480bc.md

latest2.7 KB
Original Source

LookUpEditBase.IsSynchronizedWithCurrentItem Property

Gets or sets whether an editor should keep the BaseEdit.EditValue synchronized with the current item in the LookUpEditBase.ItemsSource property. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Property Value

TypeDescription
Boolean

true, to always synchronize the BaseEdit.EditValue with the current item in the ICollectionView assigned to the LookUpEditBase.ItemsSource property; otherwise, false.

|

Remarks

Set the IsSynchronizedWithCurrentItem property to true , to ensure that the edit value always corresponds to the CurrentItem property in the ICollectionView. For example, suppose that there are two LookUpEdit controls with their LookUpEditBase.ItemsSource properties set to the same ICollectionView. Set the IsSynchronizedWithCurrentItem property to true on both editors to ensure that the edit value in each LookUpEdit is the same.

Do not use the IsSynchronizedWithCurrentItem property in multi-selection mode. In this case, the BaseEdit.EditValue contains List<object> objects and cannot be properly synchronized with the ICollectionView.

See Also

LookUpEditBase Class

LookUpEditBase Members

DevExpress.Xpf.Editors Namespace