资源简介
在国外网站上找到的超级棒的源码,有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
文件 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\Backup\J832.Common\ActionOnDispose.cs
文件 1693 2008-01-23 19:10 wpfbagotricks\source\Backup\J832.Common\CastList.cs
文件 2775 2007-12-18 00:38 wpfbagotricks\source\Backup\J832.Common\DBUtil.cs
文件 12035 2008-01-23 19:10 wpfbagotricks\source\Backup\J832.Common\Extensions.cs
文件 2701 2008-01-23 19:10 wpfbagotricks\source\Backup\J832.Common\J832.Common.csproj
文件 14994 2008-01-23 19:10 wpfbagotricks\source\Backup\J832.Common\Listba
文件 5588 2007-12-31 14:38 wpfbagotricks\source\Backup\J832.Common\LockHelper.cs
文件 1603 2008-01-06 20:10 wpfbagotricks\source\Backup\J832.Common\Properties\AssemblyInfo.cs
文件 4684 2008-01-05 23:19 wpfbagotricks\source\Backup\J832.Common\ReaderWriterLockHelper.cs
文件 10895 2008-01-23 19:10 wpfbagotricks\source\Backup\J832.Common\Util.cs
文件 3560 2008-01-11 01:42 wpfbagotricks\source\Backup\J832.Common\WriteOnce.cs
文件 5747 2008-02-03 22:56 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\AnimatingTilePanel\AnimatingTilePanelPage.xaml
文件 2136 2008-01-20 22:14 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\AnimatingTilePanel\AnimatingTilePanelPage.xaml.cs
文件 7124 2008-01-28 23:45 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\App.xaml
文件 2258 2007-12-10 20:55 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\BlockBar\BlockBarPage.xaml
文件 6336 2008-01-22 17:45 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\Code.cs
文件 1465 2007-12-02 21:17 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\ColorPicker\Code.cs
文件 9016 2008-02-17 02:05 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\ColorPicker\ColorPickerPage.xaml
文件 1400 2007-12-10 20:55 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\DateControls\DateControlsPage.xaml
文件 8918 2008-02-03 20:58 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\FlipTile3D\FlipTile3D.cs
文件 509 2007-12-02 21:17 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\FlipTile3D\FlipTile3DPage.xaml
文件 16473 2008-01-28 00:57 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\FlipTile3D\TileData.cs
文件 9946 2008-01-16 19:01 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\FolderPicker\Data.cs
文件 3983 2009-11-01 21:19 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\FolderPicker\FolderPickerPage.xaml
文件 5023 2008-01-21 23:05 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\Graph\GraphPage.xaml
文件 6479 2008-01-20 23:44 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\Graph\GraphPage.xaml.cs
文件 14541 2008-01-20 23:44 wpfbagotricks\source\Backup\J832.Wpf.BagOTricksApp\Graph\NodeClasses.cs
............此处省略581个文件信息
相关资源
- C#高级编程(第11版) 附随书编码24
- asp.net(c#)开源商店系统Brn shop 2.1(
- MahApps.Metro源码WPF开源控件库
- WPF版学员管理系统
- 一个简单的WPF系统框架
- C#实现视频会议系统
- DTcms5.0商业版源码电脑站、手机站、微
- ClearCanvas开源PACS系统C#
- 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 最新版电子书
- NFine快速开发框架C#源码完全开源版
- wpf编程宝典完整PDF版 part2
- wpf写一个日历
- Winfom-帧动画Bad Apple
- wiki开源代码asp.net+sql
- c# wpf图片左右滑动的
- WPF Blend开发教程
- 后台维护系统WPF附带SQL Server数据库和
- WPF旅游管理系统增删改查实用
- 海康威视wpf客户端1-实时预览
- WpfVLC-master.rar
- 在wpf中使用Vlc 播放 rtsp视频流
评论
共有 条评论