Class FeatureFormView
A visual feature editor form controlled by a FeatureForm definition.
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
[TemplatePart(Name = "FeatureFormContentScrollViewer", Type = typeof(ScrollViewer))]
[TemplatePart(Name = "ItemsView", Type = typeof(ItemsControl))]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(Esri_ArcGISRuntime_Toolkit_UI_Controls_BasemapGalleryWinRTTypeDetails))]
public class FeatureFormView : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<Control>
Constructors
| Name | Description |
|---|---|
| FeatureFormView() | Initializes a new instance of the FeatureFormView class. |
Fields
| Name | Description |
|---|---|
| ErrorsVisibilityProperty | Identifies the ErrorsVisibility dependency property. |
| FeatureFormProperty | Identifies the FeatureForm dependency property. |
| GeoViewProperty | Identifies the GeoView dependency property. |
| IsNavigationEnabledProperty | Identifies the IsNavigationEnabled dependency property. |
| IsValidProperty | Identifies the IsValid Dependency property. |
| VerticalScrollBarVisibilityProperty | Identifies the VerticalScrollBarVisibility dependency property. |
Properties
| Name | Description |
|---|---|
| CurrentFeatureForm | Gets the currently active feature form being edited |
| DiscardEditsCommand | Discards any pending edits to the currently active Feature Form, if any edits have been made |
| ErrorsVisibility | Gets or sets the when validation errors should be shown in the FeatureFormView. |
| FeatureForm | Gets or sets the associated FeatureForm which contains the form. |
| FinishEditingCommand | Command for calling FinishEditingAsync(bool) and applying edits to the currently active Feature Form if all fields are valid. |
| GeoView | Gets or sets the GeoView associated with the FeatureFormView. |
| IsNavigationEnabled | Gets or sets a value indicating whether to allow navigating to a different feature |
| IsValid | Gets a value indicating whether the CurrentFeatureForm has any validation errors. |
| VerticalScrollBarVisibility | Gets or sets the vertical scrollbar visibility of the scrollviewer below the title. |
Methods
| Name | Description |
|---|---|
| DiscardEditsAsync() | Discards edits to all elements, refreshes any pending expressions and restores attachment list for the CurrentFeatureForm . |
| FinishEditingAsync() | Saves edits made using the FeatureForm to the database for the CurrentFeatureForm. |
| FinishEditingAsync(bool) | Saves edits made using the FeatureForm to the database for the CurrentFeatureForm if there are not errors,
otherwise scroll to the first error if |
| OnApplyTemplate() | Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class. |
| ScrollTo(FormElement) | Scrolls to the specified form element |
| ScrollToFirstError() | Scrolls to the first element with a visible validation error |
Events
| Name | Description |
|---|---|
| BarcodeButtonClicked | Raised when the Barcode Icon in a barcode element is clicked. |
| FormAttachmentClicked | Raised when a feature form attachment is clicked |