1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 7e74ae8683 Added System::Type
Added TypeInfo for all relevant types
Added comments
Updated DependencyProperty to work with System::Type
Fixed casing on PropertyMetadata
2013-07-12 21:30:13 +02:00

44 lines
1.2 KiB
C++

#ifndef _SYSTEM_WINDOWS_CONTROLS_CANVAS_
#define _SYSTEM_WINDOWS_CONTROLS_CANVAS_
#include <System/Windows/Controls/Panel.h>
namespace System
{
namespace Windows
{
namespace Controls
{
/**
* Defines an area within which you can explicitly position child objects by using coordinates that are relative to the area.
*/
class Canvas : public Panel
{
protected:
Size ArrangeOverride(const Size arrangeSize);
Size MeasureOverride(const Size constraint);
public:
static const DependencyProperty<int> LeftProperty;
static const DependencyProperty<int> TopProperty;
static const DependencyProperty<int> ZIndexProperty;
Canvas();
static int GetLeft(const UIElement& element);
static int GetTop(const UIElement& element);
static int GetZIndex(const UIElement& element);
static const Type& GetType();
static void SetLeft(const UIElement& element, const int left);
static void SetTop(const UIElement& element, const int top);
static void SetZIndex(const UIElement& element, const int zIndex);
bool operator==(const Canvas& right) const;
bool operator!=(const Canvas& right) const;
};
}
}
}
#endif //_SYSTEM_WINDOWS_CONTROLS_CANVAS_