记录使用过的 .NET Framework

SQLite

官网:SQLite Home Page

.NET封装:System.Data.SQLite: Home

SQLite可视化管理工具汇总,SQLite Expert、SQLiteStudio、SQLiteSpy三选一

1、连接字符串

Normally, GUIDs are stored in a binary format. Use this connection string to store GUIDs as text.

"Data Source=c:mydb.db;Version=3;Password=myPassword;BinaryGUID=False;"

Note that storing GUIDs as text uses more space in the database.

BinaryGUID=False一定要的,否则使用Guid作为参数查询数据的时候查不出来,即使Guid是对的。这是因为SQLite默认将Guid类型的数据以Binary类型来存储。

2、使用System.Data.SQLite

安装部署时,只需要复制.db数据库文件以及System.Data.SQLite的相关dll,不需要其他安装

2.1、VS2015设计时支持

System.Data.SQLite: Downloads Page,下载sqlite-netFx46-setup-bundle-x86-2015-1.0.99.0.exe

This is the only setup package that is capable of installing the design-time components for Visual Studio 2015.

2.2、安装

使用NuGet,搜索并安装System.Data.SQLite.Core

Documentation:

Pragma statements supported by SQLite - journal_mode

SQLite PRAGMA | 菜鸟教程

Audio

支持多声卡,支持ogg格式,支持无缝循环播放

官网:

NAudio - Home

Github:

GitHub - naudio/NAudio: Audio and MIDI library for .NET

GitHub - naudio/Vorbis: Vorbis decoder for NAudio

Nuget:

NuGet Gallery | NAudio

NuGet Gallery | NAudio.Vorbis

NuGet Gallery | NAudio.Extras

Documentation:

NAudio Output Devices

Looped Playback in .NET with NAudio

二维码

官网:

GitHub - aaronogan/QR.NET: Continuing development of the QRCode library by ThoughtWorks

Open Source QRCode Library - CodeProject

参考资料:

C#调用ThoughtWorks.QRCode.dll生成带参数二维码 - CSDN博客

安装:

使用NuGet,搜索并安装ThoughtWorks.QRCode

备选方案:

1、QrCode.Net - Home

2、ZXing.Net - Home

经典蓝牙

GitHub:

inthehand/32feet: Personal Area Networking for .NET

Nuget:

NuGet Gallery | 32feet.NET

Documentation:

32feet.NET - Home

用C#在windows上操控电脑自带蓝牙(入道指南) - 春暖花开 - 博客频道 - CSDN.NET

Bluetooth - Jake Lin - 博客园

Extended WPF Toolkit

WPF控件库

GitHub:

xceedsoftware/wpftoolkit: All the controls missing in WPF. Over 1 million downloads.

Nuget:

NuGet Gallery | Extended.Wpf.Toolkit

Documentation:

IntegerUpDown · xceedsoftware/wpftoolkit Wiki

Thriple

WPF控件,方便地应用3D翻转效果

可惜,通过控件Content、BackContent属性设置的界面元素,会被拉伸而改变大小,弃用

官网:

Thriple - Home

参考资料:

Rotating WPF Content in 3D Space - CodeProject

安装:

手动引用Thriple.dll

FluidKit

WPF特效控件库,其中的TransitionPresenter控件,可以用于3D翻转

官网:

FluidKit - Home

安装:

使用NuGet,搜索并安装FluidKit

LoadingIndicators.WPF

WPF控件库,8种等待加载效果

官网:

GitHub - 100GPing100/LoadingIndicators.WPF: A collection of loading indicators for WPF.

安装:

使用Nuget,搜索并安装LoadingIndicators.WPF

MahApps.Metro

WPF控件库,Metro风格

官网:

MahApps.Metro Documentation

GitHub - MahApps/MahApps.Metro: A toolkit for creating Metro / Modern UI styled WPF apps.

安装:

使用Nuget,搜索并安装MahApps.Metro

GIF

WPF未提供显示GIF动态图片的控件。

如果使用WindowsFormsHost控件加载WindowsForms的PictureBox控件,可以显示GIF,但存在设置WPF窗体透明度的问题。

因此使用Nuget搜索“gif”,找到该项目。

官网:

GitHub - XamlAnimatedGif/WpfAnimatedGif: A simple library to display animated GIF images in WPF, usable in XAML or in code.

安装:

使用Nuget,搜索并安装WpfAnimatedGif

有关GIF的其他参考资料:

[WPF疑难]在WPF中显示动态GIF - 周银辉 - 博客园(使用该类库显示有些GIF,会有快速鬼畜播放的问题)

【2012.12.18更新】WPF支持GIF的各种方法 - CSDN博客

【续】WPF支持GIF的各种方法 - CSDN博客

ImageAnimator.Animate 方法 (System.Drawing)

  

托盘

官网:

hardcodet.net » WPF NotifyIcon

参考资料:

WPF NotifyIcon - CodeProject

安装:

使用Nuget,搜索并安装Hardcodet.NotifyIcon.Wpf

原文地址:https://www.cnblogs.com/MrEggplant/p/5311655.html