Example #1
0
        private void MouseUp(object sender)
        {
            System.Windows.Controls.Label _command = sender as System.Windows.Controls.Label;

            CommandButtonUp();              // ボタンの色を戻す
            if (CommandTimer.Enabled)
            {
                CommandTimer.Enabled = false;
                CommandTimer.Stop();
                CommandFlag = 0;
            }

            if (_command.IsMouseCaptured)
            {
                _command.ReleaseMouseCapture();
            }
        }