Share via


DataContextChangedEventArgs.NewValue Property

Definition

Gets the new DataContext value for the element where the DataContextChanged event fired.

public:
 property Platform::Object ^ NewValue { Platform::Object ^ get(); };
IInspectable NewValue();
public object NewValue { get; }
var object = dataContextChangedEventArgs.newValue;
Public ReadOnly Property NewValue As Object

Property Value

Object

Platform::Object

IInspectable

An object representing the new DataContext value for the element where the DataContextChanged event fired.

Remarks

The value of NewValue is only guaranteed to have a correct value during the invocation of your handler. You can't save the DataContextChangedEventArgs object and expect to be able to use the NewValue property on it in a meaningful way outside of the scope of a handler.

Applies to