zoukankan
html css js c++ java
wpf学习delegate windows事件
using
System;
using
System.Windows;
using
System.Windows.Input;
namespace
wpftest
{
/**/
///
<summary>
///
Description of Class1.
///
</summary>
public
class
Class1
{
public
Class1()
{
}
[STAThread]
public
static
void
Main()
{
Window win
=
new
Window();
win.Title
=
"
hello wpf
"
;
win.Show();
win.MouseDown
+=
new
MouseButtonEventHandler(onwinmousedonw);
Application app
=
new
Application();
app.Run(win);
}
static
void
onwinmousedonw(
object
sender,MouseButtonEventArgs args)
{
Window bb
=
sender
as
Window;
string
template
=
"
windows mouse {0} click at point{1}
"
;
string
msg
=
string
.Format(template,args.ChangedButton,args.GetPosition(bb));
MessageBox.Show(msg,bb.Title);
}
}
}
查看全文
相关阅读:
shell变量/环境变量和set/env/export用法_转
常用英语短语累积
可执行文件格式elf和bin
spring boot 配置文件application
(转)Linux命令grep
plsql 数据迁移——导出表结构,表数据,表序号
(转)logback 打印Mybitis中的sql执行过程
(转)PLSQL Developer导入Excel数据
Linux时间设置
(转)Oracle中的rownum,ROWID的 用法
原文地址:https://www.cnblogs.com/sunbingzibo/p/961640.html
最新文章
ESP库讲解
wfi彩灯
物联网开源项目
服务器压力测试 客户端
爱心灯三 微信小程序
Windows10+Ubuntu双系统安装[多图]
2emq服务器压力测试(无用)
1 域名获取+解析
【转】工科男IT职场求生法则
【转】linux下awk内置函数的使用(split/substr/length)
热门文章
【转】安全测试自学路线图
【转】REST on Rails指南
【转】外企高管们的“中年危机”
wireshark使用
DHCP协议
嵌入式linux性能详解_转
/proc/meminfo分析
linux进程同步机制_转
文件模式设置用户ID/设置组ID/sticky bit_转
父子进程属性异同(属性继承)
Copyright © 2011-2022 走看看