Back to Devexpress

EditValueChangedEventArgs.NewValue Property

wpf-devexpress-dot-xpf-dot-editors-dot-editvaluechangedeventargs-9ebbd60b.md

latest2.9 KB
Original Source

EditValueChangedEventArgs.NewValue Property

Gets a new value that has been assigned to the editor.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public object NewValue { get; }
vb
Public ReadOnly Property NewValue As Object

Property Value

TypeDescription
Object

A Object representing the new value.

|

Remarks

The EditValueChangedEventArgs class introduces the EditValueChangedEventArgs.OldValue and NewValue properties, which store the old editor value and the value that has been assigned to the editor.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NewValue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-themes-use-palette-resources-in-custom-controls/CS/DXSample/MainWindow.xaml.cs#L11

csharp
private void comboBoxEdit1_EditValueChanged(object sender, DevExpress.Xpf.Editors.EditValueChangedEventArgs e) {
    ApplicationThemeHelper.ApplicationThemeName = e.NewValue as string;
}

wpf-themes-use-palette-resources-in-custom-controls/VB/DXSample/MainWindow.xaml.vb#L13

vb
Private Sub comboBoxEdit1_EditValueChanged(ByVal sender As Object, ByVal e As DevExpress.Xpf.Editors.EditValueChangedEventArgs)
    ApplicationThemeHelper.ApplicationThemeName = TryCast(e.NewValue, String)
End Sub

See Also

EditValueChangedEventArgs Class

EditValueChangedEventArgs Members

DevExpress.Xpf.Editors Namespace