Rev | Line | |
---|
[12503] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using System.Windows;
|
---|
| 6 | using System.ComponentModel;
|
---|
| 7 | using Microsoft.Research.DynamicDataDisplay;
|
---|
| 8 |
|
---|
| 9 | namespace Microsoft.Research.DynamicDataDisplay
|
---|
| 10 | {
|
---|
| 11 | public sealed class ExtendedPropertyChangedEventArgs : EventArgs
|
---|
| 12 | {
|
---|
| 13 | public string PropertyName { get; set; }
|
---|
| 14 | public object OldValue { get; set; }
|
---|
| 15 | public object NewValue { get; set; }
|
---|
| 16 | public ChangeType ChangeType { get; set; }
|
---|
| 17 |
|
---|
| 18 | public static ExtendedPropertyChangedEventArgs FromDependencyPropertyChanged(DependencyPropertyChangedEventArgs e)
|
---|
| 19 | {
|
---|
| 20 | return new ExtendedPropertyChangedEventArgs { PropertyName = e.Property.Name, NewValue = e.NewValue, OldValue = e.OldValue };
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | internal ExtendedPropertyChangedEventArgs WithChangeType(ChangeType changeType)
|
---|
| 24 | {
|
---|
| 25 | ChangeType = changeType;
|
---|
| 26 | return this;
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.