2013-06-12 19:21:00 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* DependencyObject.h *
|
|
|
|
* *
|
|
|
|
* System::Windows::DependencyObject definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
|
|
|
#ifndef _SYSTEM_WINDOWS_DEPENDENCYOBJECT_
|
|
|
|
#define _SYSTEM_WINDOWS_DEPENDENCYOBJECT_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#include <System/Collections/Generic/Dictionary.h>
|
|
|
|
|
|
|
|
using namespace System::Collections::Generic;
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
// Represents an object that participates in the dependency property system.
|
|
|
|
class DependencyObject
|
|
|
|
{
|
|
|
|
private:
|
2013-06-12 19:21:00 +02:00
|
|
|
Dictionary<String, Object *> dependencyProperties;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
DependencyObject();
|
|
|
|
|
|
|
|
public:
|
|
|
|
void ClearValue(const String& property);
|
|
|
|
// Returns the Object stored in the property, or NULL if the property did not exist.
|
|
|
|
Object* GetValue(const String& property) const;
|
|
|
|
void SetValue(const String& property, Object* value);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-06-12 19:21:00 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_DEPENDENCYOBJECT_
|