// This Source Code is partially based on the source code provided by the .NET Foundation.
// ReSharper disable once CheckNamespace
namespace WPFluent.Controls;
public delegate void NumberBoxValueChangedEvent(object sender, NumberBoxValueChangedEventArgs args);
///
/// Provides information for the event.
///
public class NumberBoxValueChangedEventArgs : RoutedEventArgs
{
///
/// Initializes a new instance of the class. />
///
///
/// The value of the property before the change reported by the relevant event or
/// state change.
///
///
/// The value of the property after the change reported by the relevant event or state
/// change.
///
///
/// An alternate source that will be reported when the event is handled. This pre-populates the property.
///
internal NumberBoxValueChangedEventArgs(double? oldValue, double? newValue, object source) : base(
NumberBox.ValueChangedEvent,
source)
{
OldValue = oldValue;
NewValue = newValue;
}
///
/// Gets the value of the property after the change.
///
/// The property value after the change.
public double? NewValue { get; private set; }
///
/// Gets the value of the property before the change.
///
/// The property value before the change.
public double? OldValue { get; private set; }
}