zoukankan      html  css  js  c++  java
  • Click WhiteSpace Drag

    案例实现效果:通过鼠标左键单击窗口空白处,按住鼠标来拖动窗口。该案例实现很简单,可以应用在一些自定义窗口(如窗口不显示标题栏等情况)。

    <Window x:Class="ClickWhitespaceAndDrag.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ClickWhitespaceAndDrag" Height="300" Width="300" MouseLeftButtonDown="MyMouseLeftButtonDown"
        >
        <Grid>
            
        </Grid>
    </Window>
    void MyMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
           {
               this.DragMove();
           }
  • 相关阅读:
    简单计算器(栈和队列的应用)
    01背包问题(dfs+剪枝)
    PAT1057 stack(分块思想)
    算法笔记求序列A每个元素左边比它小的数的个数(树状数组和离散化)
    求序列A中每个数的左边比它小的数的个数(树状数组)
    ubuntu-创建python虚拟环境
    vue-打包
    django-项目目录结构
    接口自动化-常见工具
    selenium-封装一个browser
  • 原文地址:https://www.cnblogs.com/January/p/2433477.html
Copyright © 2011-2022 走看看