#ifndef _SYSTEM_WINDOWS_CONTROLS_CANVAS_ #define _SYSTEM_WINDOWS_CONTROLS_CANVAS_ #include 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 LeftProperty; static const DependencyProperty TopProperty; static const DependencyProperty 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_