// -----------------------------------------------------------------------
//
// Copyright 2014 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex
{
///
/// Provides information for a perspex property change.
///
public class PerspexPropertyChangedEventArgs
{
///
/// Initializes a new instance of the class.
///
/// The object that the property changed on.
/// The property that changed.
/// The old value of the property.
/// The new value of the property.
/// The priority of the binding that produced the value.
public PerspexPropertyChangedEventArgs(
PerspexObject sender,
PerspexProperty property,
object oldValue,
object newValue,
BindingPriority priority)
{
this.Sender = sender;
this.Property = property;
this.OldValue = oldValue;
this.NewValue = newValue;
this.Priority = priority;
}
///
/// Gets the that the property changed on.
///
/// The sender object.
public PerspexObject Sender { get; private set; }
///
/// Gets the property that changed.
///
///
/// The property that changed.
///
public PerspexProperty Property { get; private set; }
///
/// Gets the old value of the property.
///
///
/// The old value of the property.
///
public object OldValue { get; private set; }
///
/// Gets the new value of the property.
///
///
/// The new value of the property.
///
public object NewValue { get; private set; }
///
/// Gets the priority of the binding that produced the value.
///
///
/// The priority of the binding that produced the value.
///
public BindingPriority Priority { get; private set; }
}
}