• 大小: 19KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-03
  • 语言: C#
  • 标签: WPF  鼠标  Cursor  

资源简介

这是一个WPF 自定义鼠标形状的例子。 一般我们用.cur或是.ani文件来自定义鼠标,但是这里我用WPF代码自己写一个鼠标形状,不用外部文件。 这样更受代码控制,更具灵活性,减少了文件读取失败的风险,节省了IO资源。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace CustomCursorDemo
{
    /// 
    /// App.xaml 的交互逻辑
    /// 

    public partial class App : Application
    {
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        938  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo.sln

    ..A..H.     16384  2010-03-01 14:36  CustomCursorDemo\CustomCursorDemo.suo

     文件        297  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\App.xaml

     文件        312  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\App.xaml.cs

     文件       4233  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\CustomCursorDemo.csproj

     文件        906  2009-11-05 17:26  CustomCursorDemo\CustomCursorDemo\Window1.xaml

     文件       3549  2009-11-05 17:26  CustomCursorDemo\CustomCursorDemo\Window1.xaml.cs

     文件      14328  2010-03-01 14:36  CustomCursorDemo\CustomCursorDemo\bin\Debug\CustomCursorDemo.vshost.exe

     文件        490  2009-06-11 05:14  CustomCursorDemo\CustomCursorDemo\bin\Debug\CustomCursorDemo.vshost.exe.manifest

     文件       2227  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\Properties\AssemblyInfo.cs

     文件       2882  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\Properties\Resources.Designer.cs

     文件       5612  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\Properties\Resources.resx

     文件       1101  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\Properties\Settings.Designer.cs

     文件        201  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\Properties\Settings.settings

     目录          0  2009-11-05 17:26  CustomCursorDemo\CustomCursorDemo\bin\Debug

     目录          0  2010-02-26 17:01  CustomCursorDemo\CustomCursorDemo\obj\Debug

     目录          0  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\bin

     目录          0  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\obj

     目录          0  2009-11-05 17:25  CustomCursorDemo\CustomCursorDemo\Properties

     目录          0  2009-11-05 17:26  CustomCursorDemo\CustomCursorDemo

     目录          0  2009-11-05 17:25  CustomCursorDemo

----------- ---------  ---------- -----  ----

                53460                    21


评论

共有 条评论