maui-devexpress-dot-maui-dot-editors-1b78e76e.md
A component that allows you to arrange form items on the page.
Namespace : DevExpress.Maui.Editors
Assembly : DevExpress.Maui.Editors.dll
NuGet Package : DevExpress.Maui.Editors
[ContentProperty("Items")]
[DXLicenseMAUI]
public class FormGroupItem :
BaseFormItem,
IPaddingElement
A FormGroupItem uses a header and separator to distinguish different groups of form items. Each form group item can contain a number of nested form items:
The following diagram depicts form item groups and their elements:
Before you proceed, review the following topic:
Once you completed the general setup steps outlined in the article above, declare the DevExpress.Maui.Editors namespace in your markup:
<ContentPage
xmlns:dxe="clr-namespace:DevExpress.Maui.Editors;assembly=DevExpress.Maui.Editors">
<!--...-->
</ContentPage>
The FormGroupItem keeps grouped form items in the Items collection. Note that the Items property is a content property. You can skip the <Items> tag in your markup:
<VerticalStackLayout Padding="20,0">
<dxe:FormGroupItem Header="Language">
<dxe:FormListPickerItem .../>
</dxe:FormGroupItem>
<dxe:FormGroupItem Header="Calls"
ShowSeparator="false">
<dxe:FormSwitchItem .../>
<dxe:FormSwitchItem .../>
<dxe:FormItem .../>
</dxe:FormGroupItem>
<!--...-->
</VerticalStackLayout>
Specify the ItemSpacing property to set the distance between items within a group.
The following list contains all supported form items you can add in a FormGroupItem:
This section lists properties that allow you to add the form item group header, and configure header options:
HeaderSpecifies the header for the form item group.HeaderColorSpecifies the header color.HeaderDecorationsDefines whether the header is underlined, in strikethrough, or displayed without decorations.HeaderFontAttributesSpecifies whether the header is displayed in bold, italic, or regular font style.HeaderFontFamilySpecifies the header font family.HeaderFontSizeDefines the header font size.HeaderLineBreakModeSpecifies the line break mode for the group header.HeaderMarginDefines the gaps between the header and other group elements.HeaderMaxLineCountDefines the maximum number of header lines.
<dxe:FormGroupItem Header="Chat Notifications"
HeaderColor="Gray"
HeaderDecorations="Underline"
HeaderFontAttributes="Bold"
HeaderFontFamily="OpenSansRegular"
HeaderFontSize="14">
<!--...-->
</dxe:FormGroupItem>
Use the properties below to specify separator settings:
ShowSeparatorSpecifies whether to show the separator for the item group.SeparatorColorSpecifies the separator color.SeparatorThicknessDefines the separator thickness.ShowLastItemSeparatorSpecifies whether to show the separator below the last form item in the group.
<dxe:FormGroupItem ...
ShowSeparator="True"
SeparatorColor="Gray"
ShowLastItemSeparator="False"
SeparatorThickness="2">
<!--...-->
</dxe:FormGroupItem>
Show 17 items
Microsoft.Maui.Controls.ITabStopElement
Microsoft.Maui.IFrameworkElement
System.Object BindableObject Element NavigableElement VisualElement View Layout DevExpress.Maui.Editors.Internal.BaseFormItem FormGroupItem
YieldIfNotNull<FormGroupItem>()
See Also