本文的代码都是基于WPF的,对于Silverlight,这些技术也同样适用。 (一)INotifyPropertyChanged的使用场合 先写一个最简单的数据绑定,每次点击Button后,TextBlock的值都会自增1。 效果图如下所示: 这里使用了MVVM模式,并把Click事件抽象为了Co....
分类:
其他好文 时间:
2014-08-20 16:16:02
阅读次数:
372
点击事件代码.cs protected void Button1_Click(object sender, EventArgs e) { string strPath = "d:/test.xls"; string mystring = "Provider=M...
分类:
Web程序 时间:
2014-08-20 16:09:32
阅读次数:
164
int cx; int cy; private void btnClose_Click(object sender, EventArgs e) { this.Close(); } private void btnClose_MouseLeave(object sender, EventAr...
分类:
移动开发 时间:
2014-08-20 16:04:02
阅读次数:
222
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the". click to show clarification.C...
分类:
其他好文 时间:
2014-08-20 13:59:42
阅读次数:
229
你有想过没,当你监听某个DOM元素的一个事件时,其事件处理函数是如何和该DOM元素关联起来的呢:1 var wp=document.getElementById(‘wrapper’);2 wp.addEventListener(‘click’,function(){3 // event ...
分类:
其他好文 时间:
2014-08-20 13:53:32
阅读次数:
265
4、事件 ● 通过方法名给元素绑定事件:$('li').click(function(event){})● 通过bind方法给元素绑定事件:$('li') .bind('click',function(event){}) .bind('click',function(event){}) 可见,通过b...
分类:
Web程序 时间:
2014-08-20 11:59:52
阅读次数:
173
private void button1_Click(object sender, EventArgs e) { listBox_thread_list.Items.Clear(); Process[] processes; ...
$(document).ready(function() { $("#regUser").click(function(){if($("#userName").val()==""||$("#userName").val().length16){alert("用户名为空或者长度不符合要求!");re....
分类:
Web程序 时间:
2014-08-19 23:52:35
阅读次数:
243
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-08-19 23:42:35
阅读次数:
227
一、依赖注入DI通过依赖注入减少View、服务、资源简化初始化,事件绑定等重复繁琐工作1. AndroidAnnotations(Code Diet) android快速开发框架项目地址:https://github.com/excilys/androidannotations文档介绍:https:...
分类:
移动开发 时间:
2014-08-19 22:18:25
阅读次数:
353