LibMaterial 1.2.8
dotnet add package LibMaterial --version 1.2.8
NuGet\Install-Package LibMaterial -Version 1.2.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LibMaterial" Version="1.2.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibMaterial --version 1.2.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LibMaterial, 1.2.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LibMaterial as a Cake Addin #addin nuget:?package=LibMaterial&version=1.2.8 // Install LibMaterial as a Cake Tool #tool nuget:?package=LibMaterial&version=1.2.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LibMaterial
为 WinForm 应用 Mica,Acrylic
Plan ↻: Mica Effect
Plan ↻: System Theme
Plan X
Win32 API
DwmSetWindowAttribute
Nuget Package
无引用
参考代码
在 Win32 应用中支持云母材质
在 Win32 应用中支持深色和浅色主题,阅读更多
在 Win32 应用中支持透明客户端区域,阅读更多
实现代码
Example,阅读更多
Demo
using LibMaterial;
namespace Win11Forms
{
public partial class Window : Form
{
public Window()
{
InitializeComponent();
base.OnSystemColorsChanged(EventArgs.Empty);
LibApply.Apply_Backdrop_Effect(HWnd: Handle, BackdropFlag: LibImport.DwmSystemBackdropTypeFlgs.DWMSBT_MAINWINDOW);
}
private void Window_SystemColorsChanged(object sender, EventArgs e)
{
bool DarkStatus = !LibRegistry.GetAppUseLightTheme();
LibApply.Apply_Light_Theme(HWnd: Handle, Dark: DarkStatus);
LibApply.Apply_Transparent_Form(HWnd: Handle, Dark: DarkStatus);
}
}
}
版本支持
LibMaterial(.NET)
- .NET 6.0+
LibMaterial.Core
- .NET Core 3.1+
LibMaterial.Framework
- .NET Framework 4.7.1+
参考资料
SEARCH.BING.COM
SEARCH.GOOGLE.COM
LEARN.MICROSOFT.COM
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
添加 LibSymbol 以提供对 字体图标 的引用实现