资源简介
WPF实现超酷效果,动态图片,3D效果,树形结构,动态列表等等
代码片段和文件信息
/*
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17408 2008-03-08 20:08 wpfbagotricks\binaries\J832.Common.dll
文件 2205184 2008-03-08 20:08 wpfbagotricks\binaries\J832.Wpf.BagOTricksApp.exe
文件 194560 2008-03-08 20:08 wpfbagotricks\binaries\J832.Wpf.BagOTricksLib.dll
文件 145 2008-03-08 19:56 wpfbagotricks\Readme_2008-03-08.txt
文件 3258 2008-01-02 00:19 wpfbagotricks\source\J832.Common\ActionOnDispose.cs
文件 18944 2009-04-13 16:07 wpfbagotricks\source\J832.Common\bin\Debug\J832.Common.dll
文件 58880 2009-04-13 16:07 wpfbagotricks\source\J832.Common\bin\Debug\J832.Common.pdb
文件 32535 2009-04-13 16:07 wpfbagotricks\source\J832.Common\bin\Debug\J832.Common.xm
文件 1693 2008-01-23 19:10 wpfbagotricks\source\J832.Common\CastList.cs
文件 2775 2007-12-18 00:38 wpfbagotricks\source\J832.Common\DBUtil.cs
文件 12035 2008-01-23 19:10 wpfbagotricks\source\J832.Common\Extensions.cs
文件 2701 2008-01-23 19:10 wpfbagotricks\source\J832.Common\J832.Common.csproj
文件 14994 2008-01-23 19:10 wpfbagotricks\source\J832.Common\Listba
文件 5588 2007-12-31 14:38 wpfbagotricks\source\J832.Common\LockHelper.cs
文件 675 2009-04-13 16:07 wpfbagotricks\source\J832.Common\obj\Debug\J832.Common.csproj.FileListAbsolute.txt
文件 18944 2009-04-13 16:07 wpfbagotricks\source\J832.Common\obj\Debug\J832.Common.dll
文件 58880 2009-04-13 16:07 wpfbagotricks\source\J832.Common\obj\Debug\J832.Common.pdb
文件 1603 2008-01-06 20:10 wpfbagotricks\source\J832.Common\Properties\AssemblyInfo.cs
文件 4684 2008-01-05 23:19 wpfbagotricks\source\J832.Common\ReaderWriterLockHelper.cs
文件 10895 2008-01-23 19:10 wpfbagotricks\source\J832.Common\Util.cs
文件 3560 2008-01-11 01:42 wpfbagotricks\source\J832.Common\WriteOnce.cs
文件 5747 2008-02-03 22:56 wpfbagotricks\source\J832.Wpf.BagOTricksApp\AnimatingTilePanel\AnimatingTilePanelPage.xaml
文件 2136 2008-01-20 22:14 wpfbagotricks\source\J832.Wpf.BagOTricksApp\AnimatingTilePanel\AnimatingTilePanelPage.xaml.cs
文件 7124 2008-01-28 23:45 wpfbagotricks\source\J832.Wpf.BagOTricksApp\App.xaml
文件 18944 2009-04-13 16:07 wpfbagotricks\source\J832.Wpf.BagOTricksApp\bin\Debug\J832.Common.dll
文件 58880 2009-04-13 16:07 wpfbagotricks\source\J832.Wpf.BagOTricksApp\bin\Debug\J832.Common.pdb
文件 32535 2009-04-13 16:07 wpfbagotricks\source\J832.Wpf.BagOTricksApp\bin\Debug\J832.Common.xm
文件 2252288 2009-11-01 19:04 wpfbagotricks\source\J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksApp.exe
文件 648704 2009-11-01 19:04 wpfbagotricks\source\J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksApp.pdb
文件 14328 2009-05-21 10:49 wpfbagotricks\source\J832.Wpf.BagOTricksApp\bin\Debug\J832.Wpf.BagOTricksApp.vshost.exe
............此处省略359个文件信息
相关资源
- WPF利用Emgu CV调用计算机摄像头
- WPF 学生信息管理
- 葵花宝典--WPF自学手册
- WPF揭秘.pdf
- WPF开发框架源码 交通建设管理系统架
- 第二代Kinect WPF开发从入门到精通资料
- WPF21个优秀项目及源码
- SciChart控件破解方法见包内
- WPF开发框架
- wpf特效轮播图
- WPF做的监控程序
- wpf 图片滑动效果
- Telerik_UI_for_WPF破解版
- Telerik_UI_for_WPF_2019_1_116_Dev.msi
- WPF编程宝典2012源码和书(全)
- 深入浅出WPF刘铁猛 重新整理书签 带源
- WPF程序设计指南完整PDF高清版
- Telerik UI for WPF 2018_1_116
- 深入浅出WPF 重新整理目录,带源码
- Pro WPF 4.5 in C# Pro WPF系列第四版 英文书
- WPF学习书籍pdf《葵花宝典_WPF自学手册
- Telerik_UI_for_WPF_Documentation
- WPF编程宝典C#2012 第4版(包含源码)
- WPF编程宝典 第四版
- c# WPF 动态曲线显示
- WPF高级编程PDF
- WPF崩溃重启
- C#/WPF下的通用自动更新模块修正
- 基于WPF的USB设备浏览器
- WPF实现类似安卓,ISO的日期选择器
评论
共有 条评论