private void __touchBegin(EventContext context)
{
_down = true;
context.CaptureTouch();
if (_mode == ButtonMode.Common)
{
if (this.grayed && _buttonController != null && _buttonController.HasPage(DISABLED))
SetState(SELECTED_DISABLED);
else
SetState(DOWN);
}
if (linkedPopup != null)
{
if (linkedPopup is Window)
((Window)linkedPopup).ToggleStatus();
else
this.root.TogglePopup(linkedPopup, this);
}
}