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_CompassWinRTTypeDetails))]
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. |
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 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. |
IsNavigationEnabled | Gets or sets a value indicating whether to allow navigating to a different feature |
IsValid | Gets a value indicating whether this form 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() | When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate(). |
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 |