卡西卡的小寶庫
寶庫寶庫寶庫
Showing posts with label 文章摘要. Show all posts
Showing posts with label 文章摘要. Show all posts

Gestures:滑鼠(觸控筆)手勢,用動作來執行命令。

原文網址|摘要:

筆記:

  1. 要先安裝 OpenNETCF Smart Device Framework ( 2.2 Community Edition )
  2. 如果要套用到自己的程式碼
    1. 引用using vbAccelerator.Components.Win32;
      using OpenNETCF.Windows.Forms;
    2. 修改 Main() Application2.Run(new Form1()); // OpenNETCF.Windows.Forms.Application2
    3. form的建構式,InitializeComponent()之後加上 MouseGestureFilter mgf = new MouseGestureFilter();
      Application2.AddMessageFilter(mgf);
      mgf.MouseGesture+=new MouseGestureEventHandler(mgf_MouseGesture);
    4. 加上 mgf_MouseGesture private void mgf_MouseGesture(object sender, MouseGestureEventArgs args) {...}
  3. 可以在DataGrid上使用,但第一個MOUSE_DOWN的事件也會被datagrid收到,CurrentCell會改變。

    Screen02

  4. 雖然可以辨識手勢,但還做不到像TouchFLO的效果。
  5. 若將 args.AcceptGesture = true; 則所有事件都會被吞掉,不會向下傳到其它元件。
  6. 修改過的source[Box.net]

 

另一個Gestures相關的文章:CodeProject: Optimizing Screen Area using Mouse Gestures.

 

作用:把 http://xxx/2007/10/03.aspx 轉到 http://xxx/list.aspx?y=2007&m=10&d=03

重點:HttpContext.RewritePath

 

URL=http://msdn2.microsoft.com/en-us/library/ms972974.aspx

by Scott Mitchell
Summary: Examines how to perform dynamic URL rewriting with Microsoft ASP.NET. URL rewriting is the process of intercepting an incoming Web request and automatically redirecting it to a different URL. Discusses the various techniques for implementing URL rewriting, and examines real-world scenarios of URL rewriting.

URL=http://www.codeproject.com/aspnet/URLRewriter.asp

By Richard Birkby
Demonstrates the use of regular expression-based URL Rewriting, similar to mod_rewrite with ASP.NET

  • Application_BeginRequest
  • Configuration Section Handlers