silverlight小技巧
  1. 在页面初始化时添加代码
  • wheelDelta属性
  • {
        double mouseDelta = 0;
        ScriptObject e = args.EventObject;
        // Mozilla and Safari   
        if (e.GetProperty("detail") != null)
        {
            mouseDelta = ((double)e.GetProperty("detail"));
        } // IE and Opera   
        else if (e.GetProperty("wheelDelta") != null)
        {
            mouseDelta = ((double)e.GetProperty("wheelDelta"));
        }
        mouseDelta = Math.Sign(mouseDelta);
    }


    相关文章:

    • 2022-12-23
    • 2022-01-31
    • 2022-03-02
    • 2022-02-08
    • 2021-05-01
    • 2021-09-19
    • 2021-04-11
    猜你喜欢
    • 2022-12-23
    • 2022-12-23
    • 2022-12-23
    • 2022-12-23
    • 2021-08-24
    • 2022-02-22
    • 2021-10-20
    相关资源
    相似解决方案