1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00

46 lines
1.1 KiB
C
Raw Normal View History

#ifndef _SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_TOGGLEBUTTON_
#define _SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_TOGGLEBUTTON_
#include <System/Windows/Controls/Primitives/ButtonBase.h>
#include <System/Nullable.h>
namespace System
{
namespace Windows
{
namespace Controls
{
namespace Primitives
{
// Base class for controls that can switch states, such as System::Windows::Controls::CheckBox and System::Windows::Controls::RadioButton.
class ToggleButton : public ButtonBase
{
protected:
void OnClick();
void OnContentChanged(Object* oldContent, Object* newContent);
virtual void OnToggle();
public:
Nullable<bool> IsChecked;
bool IsThreeState;
ToggleButton();
virtual ~ToggleButton();
static int GetType();
const String& ToString() const;
bool operator==(const ToggleButton& right) const;
bool operator!=(const ToggleButton& right) const;
RoutedEventHandler Checked;
RoutedEventHandler Indeterminate;
RoutedEventHandler Unchecked;
};
}
}
}
}
#endif //_SYSTEM_WINDOWS_CONTROLS_PRIMITIVES_TOGGLEBUTTON_