FrameworkElement.TargetUpdated 事件


這個項目上的任何屬性繫結的目標值變更時發生。Occurs when the target value changes for any property binding on this element.

 event EventHandler<System::Windows::Data::DataTransferEventArgs ^> ^ TargetUpdated;
public event EventHandler<System.Windows.Data.DataTransferEventArgs> TargetUpdated;
member this.TargetUpdated : EventHandler<System.Windows.Data.DataTransferEventArgs> 
Public Custom Event TargetUpdated As EventHandler(Of DataTransferEventArgs) 


這個事件會為與此專案相關聯的任何 Binding 所引發的 TargetUpdated 事件建立別名。This event creates an alias for the TargetUpdated event that is raised by any Binding associated with this element. 這通常表示有問題的系結是雙向系結,而系結的相依性屬性 affirms 先前的屬性值現在會根據屬性或資料來源所支援的任何驗證或快取配置而無效。This usually means that the binding in question is a two-way binding, and that the bound dependency property affirms that the previous property value is now invalid according to any validation or caching scheme that the property or the data source support.

使用 TargetUpdated 事件的事件資料,來判斷報告目標值更新的特定屬性。Use the event data of the TargetUpdated event to determine the specific property that is reporting the target value update.

XAML Attribute UsageXAML Attribute Usage

<object TargetUpdated="eventHandler"/>