Skip to main content

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

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