摘要: 原项目演示地址 http://www.youpvp.com/misc/adorners.html但那个项目没有加上边界检测,要加上边界检测,只需修改方法 adorned_MouseMovevoid adorned_MouseMove(object sender, MouseEventArgs e){ if (isDragging) { Point pt = e.GetPosition(null);//返回鼠标在整个 Silverlight 插件内容区域内的坐标位置。 Point ee = e.GetPosition(this);//返回鼠标在当前控件内容区域内的坐标位置。 Matrix mx 阅读全文
posted @ 2011-04-24 22:27 geass.. 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 在 App文件加上 <Application.Resources> <LinearGradientBrush x:Key="MyBrushNormalBorder" EndPoint="1,1" StartPoint="0.2,0"> <GradientStop Color="#FFB1B1B1" Offset="0.391"/> <GradientStop Color="#46FFFFFF" Offset="1" 阅读全文
posted @ 2011-04-21 20:07 geass.. 阅读(3359) 评论(2) 推荐(1) 编辑
摘要: 用sivlerlight做动画和特效时经常会用到Math类,总结一下。参考:http://www.cnblogs.com/del/archive/2011/01/03/1924746.html//返回数字的绝对值Console.WriteLine(Math.Abs(-10));//向上进位取整Console.WriteLine(Math.Ceiling(32.1));//33Console.WriteLine(Math.Ceiling(32.0));//32Console.WriteLine(Math.Ceiling(-32.1));//32Console.WriteLine(Math.Cei 阅读全文
posted @ 2011-04-05 14:54 geass.. 阅读(465) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>WarICON Prefect</titl 阅读全文
posted @ 2011-02-18 14:50 geass.. 阅读(212) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML><HTML><HEAD><TITLE>-51windows.Net-www.51windows.Net</TITLE><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><META NAME="Author" CONTENT="51windows,海娃,haiwa"><META NAME="Description" CONTENT="Power by 51windows.Net">< 阅读全文
posted @ 2011-02-11 17:08 geass.. 阅读(791) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title></title><link 阅读全文
posted @ 2011-02-11 17:05 geass.. 阅读(368) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> <HEAD> <script type="text/javascript"><!--var arr1=new Array(""," thousand"," million"," billion")var arr2=new Array("zero","ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety")var 阅读全文
posted @ 2011-02-11 17:03 geass.. 阅读(2864) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title></title><script type="text/javascript"><!--function convertCurrency(currencyDigits) {// Constants:var MAXIMUM_NUMBER = 99999999999.99;// Predefine the radix characters and currency 阅读全文
posted @ 2011-02-11 17:01 geass.. 阅读(636) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&qu 阅读全文
posted @ 2011-02-11 16:20 geass.. 阅读(1011) 评论(1) 推荐(0) 编辑
摘要: 类似某些新闻网站一样,每隔5条数据输出一行 ............. 的分隔符,可以这样写。 阅读全文
posted @ 2011-02-10 20:39 geass.. 阅读(315) 评论(0) 推荐(0) 编辑