VControl 1.0.0
dotnet add package VControl --version 1.0.0
NuGet\Install-Package VControl -Version 1.0.0
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="VControl" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VControl --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VControl, 1.0.0"
#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 VControl as a Cake Addin #addin nuget:?package=VControl&version=1.0.0 // Install VControl as a Cake Tool #tool nuget:?package=VControl&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
V-Control
V-Control是适用于.NET MAUI 的组件库(Component),它提供了一组开箱即用的 UI 控件,可快速搭建面向业务的应用程序界面。
功能
- VButton - 按钮组件
- VCard - 卡片组件
- VCheckableCollection - 可勾选的集合组件
- VCheckBox - 复选框组件
- VCheckBoxButton - 复选框按钮组件
- VCheckBoxGroup - 复选框集合组件
- VCollectionView - 集合视图组件
- VDateNativePicker - 原生封装的日期选择器组件
- VDatePicker - 日期选择器组件
- VEditor - 编辑器组件
- VExpander - 展开收起组件
- VFormItem - 表单组件
- VIndicator - 进度指示器组件
- VMenuCell - 菜单项组件
- VNumberEntry - 数字输入框组件
- VPicker - 选择器组件
- VRadioButton - 单选框组件
- VRadioButtonGroup - 单选框集合组件(切换栏组件)
- VSearchBar - 搜索栏组件
- VTagPicker - 标签选择器组件
- VTimeLine - 时间轴组件
- VTopAppBar - 顶栏组件
- VTouchContentView - 手势监听组件
- VUploader - 文件上传组件
- VValidatingEntry - 带验证的输入框组件
- VValidatingPicker - 带验证的选择器组件
- VRichTextEditor - 富文本编辑器组件
- VEntry - 输入框组件
- VPlaceholderView - 占位视图组件
Todo
- VAutocomplete - 自动完成组件
- VComparisonView - 比较视图组件
- VCalendar - 日历组件
- 暗黑模式
- 基于 BlazorApp 的组件
快速开始
- 在你的.NET MAUI 项目中执行以下命令来安装 V-Control:
dotnet add package VControl
或在NUGET中搜索"V-Control"并安装它。
- 在
MauiProgram
使用.UseVControl()
在MauiAppBuilder中添加V-Control的处理程序。
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseVControl() //👈在这里添加V-Control的处理程序
var mauiApp = builder.Build();
return mauiApp;
}
- 打开
App.xaml
文件, 在资源中添加<v:VControlTheme />
。
<?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:v="clr-namespace:VControl.Styles;assembly=VControl">
<Application.Resources>
<v:VControlTheme />
...
</Application.Resources>
</Application>
文档
源码和示例
您可以前往GitHub查看V-Control的源码和示例。
Stargazers over time
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-android34.0 is compatible. net8.0-ios18.0 is compatible. net9.0-android was computed. net9.0-ios was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-ios18.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
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.0.0 | 46 | 2/6/2025 |