The Mtf.Maui.Controls library provides a set of reusable, customizable ContentView components for .NET MAUI applications. These components enhance user interface capabilities with features like labeled controls, hyperlinks, and numeric input.
$ dotnet add package Mtf.Maui.ControlsThe Mtf.Maui.Controls library provides a set of reusable, customizable ContentView components for .NET MAUI applications. These components enhance user interface capabilities with features like labeled controls, hyperlinks, and numeric input.
CheckBoxWithLabelA ContentView combining a CheckBox with a customizable label.
string): The text displayed alongside the checkbox.bool): The checked state of the checkbox. Supports two-way binding.IsChecked state programmatically.<controls:CheckBoxWithLabel
Label="Accept Terms and Conditions"
IsChecked="{Binding IsAccepted}" />
EntryWithLabelA labeled Entry field with extensive customization options.
string): The label displayed above or alongside the entry.string): Placeholder text for the entry. Defaults to Label if not set.string): The entry�s text. Supports two-way binding.Keyboard): The type of keyboard (e.g., Keyboard.Numeric).bool): Indicates if the entry should mask text (e.g., for passwords).booltrueColor): Color of the entry text.int): Minimum width of the entry.int): Minimum height of the entry.Text value changes.<controls:EntryWithLabel
Label="Username"
Placeholder="Enter your username"
Text="{Binding Username}"
IsPassword="False" />HyperlinkA clickable hyperlink styled with visual feedback.
string): The URL to navigate to.string): The text displayed for the hyperlink.<controls:Hyperlink
Url="https://example.com"
LinkLabel="Visit Example" />MenuItemViewA customizable menu item with navigation support.
List<string>): Image sources for the menu icon.string): Text displayed on the menu item.Type): The page to navigate to when clicked.object): Parameter to pass during navigation.ICommand): Command to execute after navigation.<controls:MenuItemView
LabelText="Settings"
PageType="{x:Type pages:SettingsPage}" />You can set up the MenuItemView to download images from an online source.
ImageSettings.UseOfflineImages = false;
ImageSettings.ImagesUrl = "https://cdn.example.com/images/";
ImageSettings.NumberOfDaysToCacheImages = 30; // Cache for 30 daysNumericUpDownWithLabelA numeric input control with increment and decrement buttons.
string): Label displayed next to the control.double): Current value. Supports two-way binding.double): Minimum allowed value.double): Maximum allowed value.double): Step size for value changes.Value changes.<controls:NumericUpDownWithLabel
Label="Quantity"
Value="{Binding Quantity}"
Minimum="1"
Maximum="100"
Increment="1" />Add the Mtf.Maui.Controls library to your MAUI project via NuGet:
dotnet add package Mtf.Maui.ControlsThis library is provided under the MIT License. Feel free to use and modify it in your applications.