Benday.Presentation.Controls
2.1.0
See the version list below for details.
dotnet add package Benday.Presentation.Controls --version 2.1.0
NuGet\Install-Package Benday.Presentation.Controls -Version 2.1.0
<PackageReference Include="Benday.Presentation.Controls" Version="2.1.0" />
<PackageVersion Include="Benday.Presentation.Controls" Version="2.1.0" />
<PackageReference Include="Benday.Presentation.Controls" />
paket add Benday.Presentation.Controls --version 2.1.0
#r "nuget: Benday.Presentation.Controls, 2.1.0"
#:package Benday.Presentation.Controls@2.1.0
#addin nuget:?package=Benday.Presentation.Controls&version=2.1.0
#tool nuget:?package=Benday.Presentation.Controls&version=2.1.0
Benday.Presentation.Controls - MAUI MVVM Controls
Ready-to-use .NET MAUI controls for MVVM apps. Bind entire ViewModelField objects for automatic label, validation, and visibility support.
Written by Benjamin Day Pluralsight Author | Microsoft MVP | Scrum.org Professional Scrum Trainer https://www.benday.com https://www.slidespeaker.ai info@benday.com YouTube: https://www.youtube.com/@_benday
Available Controls
- TextboxField - Text input with label and validation
- ComboboxField - Dropdown selection bound to SelectableCollectionViewModel
- ListboxField - List selection with single or multi-select support
- LabelField - Display-only field with consistent styling
Suggestions, Problems, or Bugs?
Got ideas for features you'd like to see? Found a bug? Let us know by submitting an issue https://github.com/benday-inc/mvvm-presentation/issues. Want to contribute? Submit a pull request.
Installing
dotnet add package Benday.Presentation.Controls
Quick Start
<controls:TextboxField BindingContext="{Binding FirstName}" />
<controls:TextboxField BindingContext="{Binding LastName}" />
<controls:ComboboxField BindingContext="{Binding Country}" />
// In your ViewModel
public ViewModelField<string> FirstName { get; } = new("First Name");
public ViewModelField<string> LastName { get; } = new("Last Name");
public SingleSelectListViewModel Country { get; } = new();
The controls automatically handle:
- Displaying the field label
- Showing/hiding based on
IsVisible - Enabling/disabling based on
IsEnabled - Displaying validation messages when
IsValidis false
Documentation
Full documentation: https://benday-inc.github.io/mvvm-presentation/
Related Packages
- Benday.Presentation - Core MVVM toolkit (required dependency)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. net10.0-maccatalyst26.0 is compatible. |
-
net10.0-android36.0
- Benday.Presentation (>= 2.1.0)
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-ios26.0
- Benday.Presentation (>= 2.1.0)
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-maccatalyst26.0
- Benday.Presentation (>= 2.1.0)
- Microsoft.Maui.Controls (>= 10.0.20)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v2.1.0 - Updated to match Benday.Presentation v2.1.0 features
v2.0.0 - .NET 10 support
v1.2.3 - Fixed bug where SelectableCollection was setting the wrong selected item if an item was already selected
v1.2.1 - Fixed stack overflow exception in SelectableCollectionViewModel
v1.2 - Fixed a nasty bug in SelectableCollectionViewModel where the wrong interface was being checked for IsSelected value changes
v1.1 - Multi select list view model
v1.0 - Initial release