maui-devexpress-dot-maui-dot-editors-dot-formitembase-3c2eddfb.md
Indicates whether the control responds to user taps. This is a bindable property.
Namespace : DevExpress.Maui.Editors
Assembly : DevExpress.Maui.Editors.dll
NuGet Package : DevExpress.Maui.Editors
public bool? AllowTap { get; set; }
| Type | Description |
|---|---|
| Nullable<Boolean> |
true if the control responds to user taps; otherwise, false.
|
Handle the Tap event or use the TapCommand property to respond to user taps.
The following example executes a command when a user taps a form item:
<dxe:FormItem ...
AllowTap="True"
TapCommand="{Binding OnTapCommand}">
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Input;
namespace FormItemsTestApp;
public partial class MainPage : ContentPage {
public MainPage() {
InitializeComponent();
this.BindingContext = new MainPageViewModel();
}
}
public class MainPageViewModel {
//...
public ICommand OnTapCommand => new Command(OnFormItemTap);
private void OnFormItemTap() {
// Perform actions when the form item is tapped.
// ...
}
}
See Also