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" />
                    
Directory.Packages.props
<PackageReference Include="Baka632.Library.Uwp.CSharp" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Baka632.Library.Uwp.CSharp&version=1.5.1
                    
Install as a Cake Tool

Library Icon

Baka632.Library.Uwp.CSharp

NuGet NuGet

为基于 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 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.

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
1.5.1 228 6/3/2025
1.0.5 244 5/27/2025
1.0.4 218 8/4/2024
1.0.3 434 1/21/2024
1.0.2 389 1/16/2024
1.0.1 388 1/14/2024
1.0.0 452 1/13/2024

[其他]
   1. 调整为 Any CPU 架构
   2. 更改包版本号规则