.NET MAUI DataForm Styling
The DataForm control for .NET MAUI provides styling options for customizing its appearance. You can style the DataForm itself, as well as its editors, groups, error messages and validation messages.
The control supports the following styling properties:
-
BackgroundColor
—Defines the background color of the DataForm. -
BorderColor
—Defines the border color of the DataForm. -
BorderThickness
—Specifies the border thickness of the DataForm.
The following example demonstrate how to use the styling properties of the DataForm:
Note that local
in the snippet above points to the namespace where the DataTypeEditorsModel
is defined.
Define the ViewModel
used as a BindingContext
for the DataForm:
For a runnable example with the DataForm Styling scenario, see the SDKBrowser Demo Application and go to DataForm > Styling category.