Class FeatureFormView
A visual feature editor form controlled by a FeatureForm definition.
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class FeatureFormView : Control
Constructors
| Improve this Doc View SourceFeatureFormView()
Initializes a new instance of the FeatureFormView class.
Declaration
public FeatureFormView()
Fields
| Improve this Doc View SourceFeatureFormProperty
Identifies the FeatureForm dependency property.
Declaration
public static readonly DependencyProperty FeatureFormProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
VerticalScrollBarVisibilityProperty
Identifies the VerticalScrollBarVisibility dependency property.
Declaration
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceFeatureForm
Gets or sets the associated FeatureForm which contains the form.
Declaration
public FeatureForm? FeatureForm { get; set; }
Property Value
Type | Description |
---|---|
Nullable<FeatureForm> |
IsValid
Gets a value indicating whether this form has any validation errors.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
Boolean |
VerticalScrollBarVisibility
Gets or sets the vertical scrollbar visibility of the scrollviewer below the title.
Declaration
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
Type | Description |
---|---|
ScrollBarVisibility |
Methods
| Improve this Doc View SourceDiscardEditsAsync()
Discards edits to all elements, refreshes any pending expressions and restores attachment list.
Declaration
public async Task DiscardEditsAsync()
Returns
Type | Description |
---|---|
Task |
FinishEditingAsync()
Saves edits made using the FeatureForm to the database.
Declaration
public async Task FinishEditingAsync()
Returns
Type | Description |
---|---|
Task |
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
Events
| Improve this Doc View SourceBarcodeButtonClicked
Raised when the Barcode Icon in a barcode element is clicked.
Declaration
public event EventHandler<BarcodeButtonClickedEventArgs>? BarcodeButtonClicked
Event Type
Type | Description |
---|---|
Nullable<EventHandler<BarcodeButtonClickedEventArgs>> |
Remarks
Set the Handled property to true
to prevent
any default code and perform your own logic.
FormAttachmentClicked
Raised when a feature form attachment is clicked
Declaration
public event EventHandler<FormAttachmentClickedEventArgs>? FormAttachmentClicked
Event Type
Type | Description |
---|---|
Nullable<EventHandler<FormAttachmentClickedEventArgs>> |
Remarks
By default, when an attachment is clicked, the default application for the file type (if any) is launched. To override this,
listen to this event, set the Handled property to true
and perform
your own logic.
private async void FormAttachmentClicked(object sender, FormAttachmentClickedEventArgs e)
{
e.Handled = true; // Prevent default launch action
await Share.Default.RequestAsync(new ShareFileRequest(new ReadOnlyFile(e.FilePath!, e.ContentType)));
}