WPF鼠标移动改变按钮大小

        private void Button_WeChat_MouseMove(object sender, MouseEventArgs e)
        {
            Button_WeChat.Height = 21;
            Button_WeChat.Width = 23;
            Button_WeChat.Margin = new Thickness
            {
                Bottom = 101,
                Left = 360,
                Right = 232,
                Top = 139
            };
        }

        private void Button_WeChat_MouseLeave(object sender, MouseEventArgs e)
        {
            Button_WeChat.Height = 19;
            Button_WeChat.Width = 21;
            Button_WeChat.Margin = new Thickness
            {
                Bottom = 102,
                Left = 361,
                Right = 233,
                Top = 140
            };
        }

你可能感兴趣的:(WPF鼠标移动改变按钮大小)