mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added TypeInfo for all relevant types Added comments Updated DependencyProperty to work with System::Type Fixed casing on PropertyMetadata
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
/*****************************************************************************
|
|
* Control.h *
|
|
* *
|
|
* System::Windows::Controls::Panel definition file *
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
*****************************************************************************/
|
|
#ifndef _SYSTEM_WINDOWS_CONTROLS_CONTROL_
|
|
#define _SYSTEM_WINDOWS_CONTROLS_CONTROL_
|
|
|
|
#include <System/Windows/FrameworkElement.h>
|
|
#include <System/Windows/Media/Brush.h>
|
|
|
|
using namespace System::Windows::Media;
|
|
|
|
namespace System
|
|
{
|
|
namespace Windows
|
|
{
|
|
namespace Controls
|
|
{
|
|
/**
|
|
* Represents the base class for UI elements that use a System::Windows::Controls::ControlTemplate to define their appearance.
|
|
*/
|
|
class Control : public FrameworkElement
|
|
{
|
|
protected:
|
|
Control();
|
|
|
|
virtual void OnGotFocus(RoutedEventArgs* e);
|
|
virtual void OnKeyDown(KeyEventArgs* e);
|
|
virtual void OnKeyUp(KeyEventArgs* e);
|
|
virtual void OnLostFocus(RoutedEventArgs* e);
|
|
virtual void OnMouseEnter(MouseEventArgs* e);
|
|
virtual void OnMouseLeave(MouseEventArgs* e);
|
|
virtual void OnMouseMove(MouseEventArgs* e);
|
|
|
|
public:
|
|
Brush* Background;
|
|
Brush* BorderBrush;
|
|
Thickness BorderThickness;
|
|
Brush* Foreground;
|
|
HorizontalAlignment_t HorizontalContentAlignment;
|
|
bool IsEnabled;
|
|
bool IsTabStop;
|
|
Thickness Padding;
|
|
int TabIndex;
|
|
VerticalAlignment_t VerticalContentAlignment;
|
|
|
|
virtual ~Control();
|
|
|
|
bool ApplyTemplate();
|
|
bool Focus();
|
|
static const Type& GetType();
|
|
|
|
bool operator ==(const Control& right) const;
|
|
bool operator !=(const Control& right) const;
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_WINDOWS_CONTROLS_CONTROL_
|