FrameworkElement.TargetUpdated Event


当此元素上的任何属性绑定的目标值发生更改时发生。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. 这通常意味着所涉及的绑定是一个双向绑定,而绑定依赖属性确认以前的属性值现在会根据属性或数据源支持的任何验证或缓存方案无效。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 特性用法XAML Attribute Usage

<object TargetUpdated="eventHandler"/>  

Applies to

See also