资源简介
WPF各种动画效果例子
代码片段和文件信息
/*
The MIT License
Copyright (c) 2007 Kevin Moore (http://j832.com)
Permission is hereby granted free of charge to any person obtaining a copy
of this software and associated documentation files (the “Software“) to deal
in the Software without restriction including without limitation the rights
to use copy modify merge publish distribute sublicense and/or sell
copies of the Software and to permit persons to whom the Software is
furnished to do so subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
using System;
using System.Threading;
namespace J832.Common
{
///
/// Provides a wrapper over that
/// invokes the provided delegate when
/// is called.
///
///
///
/// SqlConnection conn = new SqlConnection(connectionString);
/// using(new ActionOnDispose(new Action(conn.Close))
/// {
/// // Do work here...
/// // For cases where you want the connection closed
/// // but not disposed
/// }
///
///
public sealed class ActionOnDispose : IDisposable
{
///
/// Creats a new
/// using the provided .
///
///
/// The to invoke when is called.
///
/// if is null.
public ActionOnDispose(Action unlockAction)
{
Util.RequireNotNull(unlockAction “unlockAction“);
m_unlockDelegate = unlockAction;
}
///
/// Calls the provided Action if it has not been called;
/// otherwise throws an .
///
/// If has already been called.
public void Dispose()
{
Action action = Interlocked.Exchange(ref m_unlockDelegate null);
if (action != null)
{
action();
}
else
{
throw new InvalidOperati
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3258 2008-01-02 00:19 J832.Common\ActionOnDispose.cs
文件 18944 2009-04-13 16:07 J832.Common\bin\Debug\J832.Common.dll
文件 58880 2009-04-13 16:07 J832.Common\bin\Debug\J832.Common.pdb
文件 32535 2009-04-13 16:07 J832.Common\bin\Debug\J832.Common.xm
文件 1693 2008-01-23 19:10 J832.Common\CastList.cs
文件 2775 2007-12-18 00:38 J832.Common\DBUtil.cs
文件 12035 2008-01-23 19:10 J832.Common\Extensions.cs
文件 2701 2008-01-23 19:10 J832.Common\J832.Common.csproj
文件 14994 2008-01-23 19:10 J832.Common\Listba
文件 5588 2007-12-31 14:38 J832.Common\LockHelper.cs
文件 675 2009-04-13 16:07 J832.Common\obj\Debug\J832.Common.csproj.FileListAbsolute.txt
文件 18944 2009-04-13 16:07 J832.Common\obj\Debug\J832.Common.dll
文件 58880 2009-04-13 16:07 J832.Common\obj\Debug\J832.Common.pdb
文件 1603 2008-01-06 20:10 J832.Common\Properties\AssemblyInfo.cs
文件 4684 2008-01-05 23:19 J832.Common\ReaderWriterLockHelper.cs
文件 10895 2008-01-23 19:10 J832.Common\Util.cs
文件 3560 2008-01-11 01:42 J832.Common\WriteOnce.cs
文件 5747 2008-02-03 22:56 J832.Wpf.BagOTricksApp\AnimatingTilePanel\AnimatingTilePanelPage.xaml
文件 2136 2008-01-20 22:14 J832.Wpf.BagOTricksApp\AnimatingTilePanel\AnimatingTilePanelPage.xaml.cs
文件 7124 2008-01-28 23:45 J832.Wpf.BagOTricksApp\App.xaml
文件 18944 2009-04-13 16:07 J832.Wpf.BagOTricksApp\bin\Debug\J832.Common.dll
文件 58880 2009-04-13 16:07 J832.Wpf.BagOTricksApp\bin\Debug\J832.Common.pdb
文件 32535 2009-04-13 16:07 J832.Wpf.BagOTricksApp\bin\Debug\J832.Common.xm
文件 2252288 2009-11-01 19:04 J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksApp.exe
文件 648704 2009-11-01 19:04 J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksApp.pdb
文件 14328 2009-05-21 10:49 J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksApp.vshost.exe
文件 490 2007-07-21 01:33 J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksApp.vshost.exe.manifest
文件 225792 2009-10-30 14:58 J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksLib.dll
文件 837120 2009-10-30 14:58 J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksLib.pdb
文件 2258 2007-12-10 20:55 J832.Wpf.BagOTricksApp\BlockBar\BlockBarPage.xaml
............此处省略407个文件信息
相关资源
- 超级棒的开源WPF动画效果
- C#高级编程(第11版) 附随书编码24
- MahApps.Metro源码WPF开源控件库
- WPF版学员管理系统
- 一个简单的WPF系统框架
- WPF C1Chart Demo
- wpf 适用windows系统触屏的手写识别
- WPF编程宝典 WPF编程(第二版)
- CefSharp63 WPF 支持mp3、mp4、flansh、anyc
- VLCTest.rar
- WPF 编程宝典第四版(.NET4.5)
- WPF比较多
- WPF全视角分析
- WPF 编程宝典-使用C# 2012和.NET 4.5 (第
- WPF 4.5 unleashed 最新版电子书
- wpf编程宝典完整PDF版 part2
- wpf写一个日历
- c# wpf图片左右滑动的
- WPF Blend开发教程
- 后台维护系统WPF附带SQL Server数据库和
- WPF旅游管理系统增删改查实用
- 海康威视wpf客户端1-实时预览
- WpfVLC-master.rar
- 在wpf中使用Vlc 播放 rtsp视频流
- 深入浅出WPF(中文版)
- 《深入浅出 WPF》刘铁猛高清版
- c# emgucv 实时绿幕抠像源码
- WPF学习-MSDN所有wpf案例打包
- 葵花宝典-WPF自学手册
- <>刘铁猛,完整版,带详细标签的PD
评论
共有 条评论