• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: 其他
  • 标签: 其他  

资源简介


一个项目中需要用到的功能,单独抽出来作为一个小应用,便于以后重用。这是用Silverlight 3平台做的,主要是动态在线绘制图形,使用了依赖属性根据鼠标位置变化控制最终节点的位置。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ShapeDraw
{
    public partial class App : Application
    {

        public App()
        {
            this.Startup += this.Application_Startup;
            this.Exit += this.Application_Exit;
            this.UnhandledException += this.Application_UnhandledException;

            InitializeComponent();
        }

        private void Application_Startup(object sender StartupEventArgs e)
        {
            this.RootVisual = new MainPage();
        }

        private void Application_Exit(object sender EventArgs e)
        {

        }
        private void Application_UnhandledException(object sender ApplicationUnhandledExceptionEventArgs e)
   

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

     文件        292  2010-02-24 10:31  ShapeDraw\App.xaml

     文件       2395  2010-02-24 10:31  ShapeDraw\App.xaml.cs

     文件        345  2010-06-12 16:04  ShapeDraw\Bin\Debug\AppManifest.xaml

     文件      14336  2010-06-12 17:41  ShapeDraw\Bin\Debug\ShapeDraw.dll

     文件      36352  2010-06-12 17:41  ShapeDraw\Bin\Debug\ShapeDraw.pdb

     文件       6983  2010-06-12 17:41  ShapeDraw\Bin\Debug\ShapeDraw.xap

     文件       2839  2010-06-13 00:21  ShapeDraw\Bin\Debug\TestPage.html

     目录          0  2010-07-15 10:27  ShapeDraw\Bin\Debug

     目录          0  2010-07-15 10:27  ShapeDraw\Bin

     文件       6442  2010-07-15 10:29  ShapeDraw\DPolyLine.cs

     文件       6432  2010-07-15 10:29  ShapeDraw\DPolyLine.cs.bak

     文件        500  2010-06-12 17:00  ShapeDraw\DrawEventArgs.cs

     文件        442  2010-02-24 13:13  ShapeDraw\DynamicPointCollection.cs

     文件        717  2010-02-25 16:08  ShapeDraw\MainPage.xaml

     文件        926  2010-06-12 16:02  ShapeDraw\MainPage.xaml.cs

     文件       1776  2010-06-12 16:04  ShapeDraw\obj\Debug\App.g.cs

     文件       2118  2010-06-12 16:04  ShapeDraw\obj\Debug\MainPage.g.cs

     目录          0  2010-07-15 10:27  ShapeDraw\obj\Debug\Refactor

     文件       1444  2010-06-12 16:51  ShapeDraw\obj\Debug\ShapeDraw.csproj.FileListAbsolute.txt

     文件      14336  2010-06-12 17:41  ShapeDraw\obj\Debug\ShapeDraw.dll

     文件       1267  2010-06-12 16:04  ShapeDraw\obj\Debug\ShapeDraw.g.resources

     文件      36352  2010-06-12 17:41  ShapeDraw\obj\Debug\ShapeDraw.pdb

     目录          0  2010-07-15 10:27  ShapeDraw\obj\Debug\TempPE

     文件        379  2010-06-12 17:41  ShapeDraw\obj\Debug\XapCacheFile.xml

     目录          0  2010-07-15 10:27  ShapeDraw\obj\Debug

     目录          0  2010-07-15 10:27  ShapeDraw\obj

     文件        213  2010-02-24 10:31  ShapeDraw\Properties\AppManifest.xml

     文件       1419  2010-02-24 10:31  ShapeDraw\Properties\AssemblyInfo.cs

     目录          0  2010-07-15 10:27  ShapeDraw\Properties

     文件       4356  2010-02-25 15:19  ShapeDraw\ShapeDraw.csproj

............此处省略5个文件信息

评论

共有 条评论