コード例 #1
0
 private void TranslateForm_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         Win32APIUtils.DragMove(Handle);
     }
 }
コード例 #2
0
        private void ApplyOpacityAndClickthrough()
        {
            var op = _targetOpacity;

            if (_targetClickthrough && op >= 1)
            {
                op = 0.99;
            }
            Opacity = op;
            Win32APIUtils.SetWS_EX_TRANSPARENT(Handle, _targetClickthrough);
        }
コード例 #3
0
        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;
        }