ca.whittaker.Maui.Controls
1.0.7
This initial 1.0 version should have been labelled as "beta" however this was my first Nuget package I have ever published, and was unfamiliar with how quickly and easily new packages are made available. Please use 2.0 onwards version 1.0 is considered beta/alpha.
See the version list below for details.
dotnet add package ca.whittaker.Maui.Controls --version 1.0.7
NuGet\Install-Package ca.whittaker.Maui.Controls -Version 1.0.7
<PackageReference Include="ca.whittaker.Maui.Controls" Version="1.0.7" />
paket add ca.whittaker.Maui.Controls --version 1.0.7
#r "nuget: ca.whittaker.Maui.Controls, 1.0.7"
// Install ca.whittaker.Maui.Controls as a Cake Addin #addin nuget:?package=ca.whittaker.Maui.Controls&version=1.0.7 // Install ca.whittaker.Maui.Controls as a Cake Tool #tool nuget:?package=ca.whittaker.Maui.Controls&version=1.0.7
MAUI Controls
form related controls - ca.whittaker.Maui.Controls.Forms
Form
- Incorporates TextBox and CheckBox.
- Integrates Save and Cancel buttons automatically.
TextBox
- Types:
- Text
- Url
- Chat
- Username
- Filtering Options:
- AllLowerCase
- AllowWhiteSpace
- Mandatory
- Built-in Functionalities:
- "Undo" button for reverting text entries.
- Label for descriptions or titles.
- Notification message area for displaying input-related messages.
CheckBox (Planned)
A future addition to enhance the Form control collection.
button related controls - ca.whittaker.Maui.Controls.Buttons
Button embedded graphics by class
Button Class | enabled | disabled |
---|---|---|
CancelButton | ![]() |
![]() |
UndoButton | ![]() |
![]() |
SaveButton | ![]() |
![]() |
SigninButton | ![]() |
![]() |
SignoutButton | ![]() |
![]() |
SigninButton class specialized types
SigninButtonType | enabled | disabled |
---|---|---|
Tiktok | ![]() |
![]() |
![]() |
![]() |
|
![]() |
![]() |
|
Microsoft | ![]() |
![]() |
Apple | ![]() |
![]() |
Note: Buttons include embedded graphic icons for specific purposes, with "enabled" and "disabled" state graphics to reflect the button's active state in relation to its environment.
This comprehensive structure offers a detailed view of the enhanced functionalities and user interaction mechanisms in the custom MAUI application, focusing on form management and control interactions.
Usage
To integrate the Form class into your .NET MAUI application, follow these steps:
Step 1. Adding the Form to Your View
Incorporate the Form class in your XAML where you need a form. Make sure to reference the namespace ca.whittaker.Maui.Controls.Forms.
XAML Example:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:forms="ca.whittaker.Maui.Controls.Forms"
x:Class="YourNamespace.YourPage">
<forms:Form x:Name="myForm"/>
</ContentPage>
Step 2. Configuring the Form
You can configure various aspects of the form directly in XAML. Set properties such as FormName, FormSaveButtonText, and FormCancelButtonText to customize the form's appearance and behavior.
Example of Setting Properties:
<forms:Form x:Name="myForm"
FormName="User Details"
FormSaveButtonText="Submit"
FormCancelButtonText="Reset" />
Step 3. Binding Commands and Parameters
Bind commands and parameters to handle actions like saving data or canceling the form operation. Use the Command and CommandParameter properties for this purpose.
Example of Command Binding:
<forms:Form x:Name="myForm"
Command="{Binding SaveCommand}"
CommandParameter="" />
Step 4. Customizing Appearance
Customize the appearance of the form by setting properties like FormNameTextColor and FormSize.
Example of Customizing Appearance:
<forms:Form x:Name="myForm"
FormNameTextColor="Blue"
FormSize="Large" />
By following these steps, you can effectively incorporate and customize the Form class in your .NET MAUI application using XAML.
Step 5. Adding the Form to Your View
Incorporate the Form class in your XAML where you need a form. Make sure to reference the namespace ca.whittaker.Maui.Controls.Forms.
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:forms="ca.whittaker.Maui.Controls.Forms"
x:Class="YourNamespace.YourPage">
<forms:Form x:Name="myForm"/>
</ContentPage>
Author
Brett Whittaker - brett@whittaker.ca
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-android34.0 is compatible. net8.0-ios17.0 is compatible. net8.0-maccatalyst17.0 is compatible. net8.0-windows10.0.19041 is compatible. |
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
-
net8.0-ios17.0
- Microsoft.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
-
net8.0-maccatalyst17.0
- Microsoft.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.