Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DateEdit.PickerButtonAreaTemplate Property

Gets or sets the template applied to the button area of the DateEdit. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public DataTemplate PickerButtonAreaTemplate { get; set; }

#Property Value

Type Description
DataTemplate

The template.

#Remarks

The following code sample applies the custom template to the DateEdit‘s button area:

<dxe:DateEdit>
    <dxe:DateEdit.PickerButtonAreaTemplate>
        <DataTemplate>
            <HorizontalStackLayout Margin="10,0,0,10" Spacing="10">
                <Button Text="Custom OK" BackgroundColor="Green" TextColor="White" 
                        CornerRadius="6" Command="{Binding ConfirmCommand}" />
                <Button Text="Custom Cancel" BackgroundColor="Red" TextColor="White" 
                        CornerRadius="6" Command="{Binding CancelCommand}"/>
            </HorizontalStackLayout>
        </DataTemplate>
      </dxe:DateEdit.PickerButtonAreaTemplate>
</dxe:DateEdit>

DateEdit for .NET MAUI - Custom Picker Button Area Template

See Also