1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/Windows/RoutedPropertyChangedEventArgs.h
Tom Lint b1777ae216 Added DependencyProperty and related classes
Replaced include guards
Removed redundant semicolons
2013-06-12 19:21:00 +02:00

45 lines
1.2 KiB
C++

/*****************************************************************************
* RoutedPropertyChangedEventArgs.h *
* *
* System::Windows::RoutedPropertyChangedEventArgs definition file *
* Copyright (c) XFX Team. All rights reserved *
*****************************************************************************/
#ifndef _SYSTEM_WINDOWS_ROUTEDPROPERTYCHANGEDEVENTARGS_
#define _SYSTEM_WINDOWS_ROUTEDPROPERTYCHANGEDEVENTARGS_
#include <System/Windows/RoutedEventArgs.h>
namespace System
{
namespace Windows
{
template <typename T>
class RoutedPropertyChangedEventArgs : public RoutedEventArgs
{
public:
const T OldValue;
const T NewValue;
RoutedPropertyChangedEventArgs(const T oldValue, const T newValue)
: OldValue(oldValue), NewValue(newValue)
{
}
};
template <typename T>
class RoutedPropertyChangedEventArgs<T *> : public RoutedEventArgs
{
public:
T const * const OldValue;
T const * const NewValue;
RoutedPropertyChangedEventArgs(T const * const oldValue, T const * const newValue)
: OldValue(oldValue), NewValue(newValue)
{
}
};
}
}
#endif //_SYSTEM_WINDOWS_ROUTEDPROPERTYCHANGEDEVENTARGS_