Baka632.Library.Uwp.CSharp
1.5.1
Prefix Reserved
dotnet add package Baka632.Library.Uwp.CSharp --version 1.5.1
NuGet\Install-Package Baka632.Library.Uwp.CSharp -Version 1.5.1
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="Baka632.Library.Uwp.CSharp" Version="1.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Baka632.Library.Uwp.CSharp" Version="1.5.1" />
<PackageReference Include="Baka632.Library.Uwp.CSharp" />
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 Baka632.Library.Uwp.CSharp --version 1.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Baka632.Library.Uwp.CSharp, 1.5.1"
#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 Baka632.Library.Uwp.CSharp@1.5.1
#: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=Baka632.Library.Uwp.CSharp&version=1.5.1
#tool nuget:?package=Baka632.Library.Uwp.CSharp&version=1.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
![]()
Baka632.Library.Uwp.CSharp
为基于 C# 的 UWP 应用而设计的类库。
MIT 许可证。
常用类型
- XamlHelper:为函数绑定提供的工具类。
xmlns:helpers="using:Baka632.Library.Uwp.CSharp.Helpers"
<Button Visibility="{x:Bind helpers:XamlHelper.ReverseVisibility(ViewModel.IsLoading), Mode=OneWay}">
- LocalizationHelper:为应用本地化提供的工具类。
public string AppDisplayName => "AppDisplayName".GetLocalized();
- EnvironmentHelper:为应用程序运行环境提供的工具类。
if (EnvironmentHelper.IsWindowsMobile)
{
IsShowTitlebar = false;
}
- AcrylicHelper & MicaHelper:为亚克力背景和云母背景提供的工具类。
if (MicaHelper.IsSupported())
{
MicaHelper.TrySetMica(this);
}
else if (AcrylicHelper.IsSupported())
{
AcrylicHelper.TrySetAcrylicBrush(this);
}
支持版本
包的最低支持版本限制为 Windows 10 Build 16299,但实际支持到 15063。
可以通过将项目最低版本设置为 16299 而将 Package.appxmanifest 中的 TargetDeviceFamily 设置为 15063 来支持较低版本的系统。
例如:
<TargetDeviceFamily Name="Windows.Mobile" MinVersion="10.0.15063.0" MaxVersionTested="10.0.15254.0" />
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| Universal Windows Platform | uap10.0.15138 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
UAP 10.0.15138
- Microsoft.NETCore.UniversalWindowsPlatform (>= 6.2.14)
- Microsoft.Toolkit.Uwp.UI (>= 4.0.0)
- Microsoft.UI.Xaml (>= 2.7.3)
- Newtonsoft.Json (>= 13.0.3)
- Win2D.uwp (>= 1.28.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
[其他]
1. 调整为 Any CPU 架构
2. 更改包版本号规则