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);
}
}
}
查看全文
相关阅读:
在visual studio 2010中调用ffmpeg
RTP/RTCP/RTSP/SIP/SDP
YV12数据与AVFrame的相互转换
实现输出h264直播流的rtmp服务器
RTMP协议发送H.264编码及AAC编码的音视频,实现摄像头直播
CentOS 硬盘分区方案
ubuntu默认root密码
windows下ACE怎样安装与使用说明?
CentOS 6.4 图文安装教程
我自己的FFMpeg编译之路
原文地址:https://www.cnblogs.com/sunbingzibo/p/961640.html
最新文章
Win7 : 如何修改某种文件的默认打开方式
.NET :如何对数组进行排序
Silverlight : 宿主页面
.NET Mail : 注意Win 7 不再包含SMTP服务
SharePoint: 如何比较文档的不同版本
WCF:异步调用长时间工作的服务
在WCF中使用消息队列
IIS 7 提供的.NET 管理接口
偶滴工作环境
搞了个免驱的摄像头,写了个程序来测试一下。
热门文章
图像处理魔法门(By C#) 序 为什么想写这一系列文章
一口酸奶差点喷到键盘上去
凑热闹,列个非主流书单:(1)分析与解决问题、通用管理(2)技术管理/CTO
Bad Apple: 技术偏执狂的狂欢
金矿在哪里?
图像编程魔法门(By C#) 目录
图像变形功能的应用: 在线修整发型
记一个bug定位与修复过程
基于Ubuntu交叉编译FFmpeg Windows SDK
使用FFMpeg进行H264编码
Copyright © 2011-2022 走看看