private void TranslateForm_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         Win32APIUtils.DragMove(Handle);
     }
 }
        private void ApplyOpacityAndClickthrough()
        {
            var op = _targetOpacity;

            if (_targetClickthrough && op >= 1)
            {
                op = 0.99;
            }
            Opacity = op;
            Win32APIUtils.SetWS_EX_TRANSPARENT(Handle, _targetClickthrough);
        }
        private void ControllerOnClickthroughChanged(bool fromView, bool clickthrough)
        {
            if (fromView)
            {
                return;
            }
            Win32APIUtils.SetWS_EX_TRANSPARENT(_handle, clickthrough);

            var v = clickthrough ? Visibility.Collapsed : Visibility.Visible;

            ThumbResize.Visibility = v;
            ThumbMove.Visibility   = v;
        }