LeeTeke.WpfControl
1.0.0-rc1.6
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
This is a prerelease version of LeeTeke.WpfControl.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package LeeTeke.WpfControl --version 1.0.0-rc1.6
NuGet\Install-Package LeeTeke.WpfControl -Version 1.0.0-rc1.6
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="LeeTeke.WpfControl" Version="1.0.0-rc1.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LeeTeke.WpfControl" Version="1.0.0-rc1.6" />
<PackageReference Include="LeeTeke.WpfControl" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LeeTeke.WpfControl --version 1.0.0-rc1.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LeeTeke.WpfControl, 1.0.0-rc1.6"
#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.
#:package LeeTeke.WpfControl@1.0.0-rc1.6
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LeeTeke.WpfControl&version=1.0.0-rc1.6&prerelease
#tool nuget:?package=LeeTeke.WpfControl&version=1.0.0-rc1.6&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WpfControl
一款类Win11风格的WPF主题控件库;
支持暗黑/命令主题切换,可跟随系统;
多个自定义控件;
<Application
...>
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/LeeTeke.WpfControl;component/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/LeeTeke.WpfControl;component/Themes.xaml" />
<ResourceDictionary Source="pack://application:,,,/LeeTeke.WpfControl;component/Controls.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
添加命名控件以使用自定义控件以及其它辅助工具方法
xmlns:lee="https://github.com/leeteke/LeeTeke.WpfControl"
开启主题跟随主题的系统主题的方法
在 app.cs 文件中
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
//初始化
LeeTeke.WpfControl.Config.Initialize();
//使用系统主题
LeeTeke.WpfControl.Config.UseSystemThemeMode = true;
//使用系统主题色
LeeTeke.WpfControl.Config.UseSystemThemeColor = true;
//当系统主题切换时通知
LeeTeke.WpfControl.Config.ThemeModeChanged += Config_ThemeModeChanged;
base.OnStartup(e);
}
private void Config_ThemeModeChanged(object? sender, LeeTeke.WpfControl.Models.ThemeMode e)
{
if (e == LeeTeke.WpfControl.Models.ThemeMode.Light)
{
//配置自己的颜色方法
}
else
{
//配置自己的颜色方法
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
| .NET Framework | net48 is compatible. net481 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- No dependencies.
-
.NETFramework 4.8.1
- No dependencies.
-
net10.0-windows7.0
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
-
net7.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
-
net9.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.
| Version | Downloads | Last Updated |
|---|