DataContextChangedEventArgs.NewValue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
An object representing the new DataContext value for the element where the DataContextChanged event fired.
Remarks
The NewValue value 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.