1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 66a012689c Changed Object::GetType to static
DependencyProperties can now (sort of) be registered
2013-07-11 17:25:49 +02:00

52 lines
1.2 KiB
C++

#pragma once
#include <System/Windows/Controls/ContentControl.h>
#include <System/Windows/Input/KeyEventArgs.h>
#include <System/Windows/Input/MouseEventArgs.h>
using namespace System::Windows::Input;
namespace System
{
namespace Windows
{
namespace Controls
{
namespace Primitives
{
// Represents the base class for all button controls, such as System::Windows::Controls::Button, System::Windows::Controls::Primitives::RepeatButton, and System::Windows::Controls::HyperlinkButton.
class ButtonBase : public ContentControl
{
private:
bool isFocused;
protected:
ButtonBase();
virtual void OnClick();
void OnGotFocus(RoutedEventArgs* e);
void OnKeyDown(KeyEventArgs* e);
void OnKeyUp(KeyEventArgs* e);
void OnMouseEnter(MouseEventArgs* e);
void OnMouseLeave(MouseEventArgs* e);
void OnMouseMove(MouseEventArgs* e);
void UpdateVisualState(bool useTransitions);
public:
bool IsFocused() const;
virtual ~ButtonBase();
static int GetType();
RoutedEventHandler Click;
bool operator ==(const ButtonBase& right) const;
bool operator !=(const ButtonBase& right) const;
};
}
}
}
}