2013-06-12 19:21:00 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_CONTROLS_GRID_
|
|
|
|
#define _SYSTEM_WINDOWS_CONTROLS_GRID_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#include <System/Windows/Controls/Panel.h>
|
|
|
|
#include <System/Windows/Controls/ColumnDefinition.h>
|
|
|
|
#include <System/Windows/Controls/RowDefinition.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
namespace Controls
|
|
|
|
{
|
|
|
|
// Defines a flexible grid area that consists of columns and rows.
|
|
|
|
class Grid : public Panel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
Size ArrangeOverride(const Size arrangeSize);
|
|
|
|
Size MeasureOverride(const Size constraint);
|
|
|
|
|
|
|
|
public:
|
|
|
|
static const String ColumnProperty;
|
|
|
|
static const String ColumnSpanProperty;
|
|
|
|
static const String RowProperty;
|
|
|
|
static const String RowSpanProperty;
|
|
|
|
|
|
|
|
ColumnDefinitionCollection ColumnDefinitions;
|
|
|
|
RowDefinitionCollection RowDefinitions;
|
|
|
|
bool ShowGridLines;
|
|
|
|
|
|
|
|
Grid();
|
|
|
|
~Grid();
|
|
|
|
|
|
|
|
int GetColumn(FrameworkElement const * const element);
|
|
|
|
int GetColumnSpan(FrameworkElement const * const element);
|
|
|
|
int GetRow(FrameworkElement const * const element);
|
|
|
|
int GetRowSpan(FrameworkElement const * const element);
|
2013-07-11 17:25:49 +02:00
|
|
|
static int GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
static void SetColumn(FrameworkElement * const element, const int column);
|
|
|
|
static void SetColumnSpan(FrameworkElement * const element, const int columnSpan);
|
|
|
|
static void SetRow(FrameworkElement * const element, const int row);
|
|
|
|
static void SetRowSpan(FrameworkElement * const element, const int rowSpan);
|
|
|
|
|
|
|
|
bool operator==(const Grid& right) const;
|
|
|
|
bool operator!=(const Grid& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-06-12 19:21:00 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_CONTROLS_GRID_
|