C# Class Esri.ArcGISRuntime.Toolkit.Controls.FeatureDataField

Inheritance: Control, INotifyPropertyChanged
Mostra file Open project: Esri/arcgis-toolkit-dotnet Class Usage Examples

Public Properties

Property Type Description
BindingValueProperty DependencyProperty
FieldNameProperty DependencyProperty
GeodatabaseFeatureProperty DependencyProperty
InputTemplateProperty DependencyProperty
IsReadOnlyProperty DependencyProperty
ReadOnlyTemplateProperty DependencyProperty
SelectorTemplateProperty DependencyProperty
ValidationExceptionProperty DependencyProperty

Public Methods

Method Description
FeatureDataField ( ) : System

Initializes a new instance of the FeatureDataField class.

OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnApplyTemplate ( ) : void

Private Methods

Method Description
AreEqual ( object o1, object o2 ) : bool
Cancel ( ) : void

Changes the current value back to the GeodatabaseFeature last saved value.

CommitChange ( object value ) : bool

Commits FeatureDataField value back to the GeodatabaseFeature.

ContentControl_GotFocus ( object sender, RoutedEventArgs e ) : void
ContentControl_LostFocus ( object sender, RoutedEventArgs e ) : void
EmptyStringToNull ( object value ) : object
EnsureCorrectDataType ( object value ) : object

Tries to make sure that the value can be converted to the correct datatype if the input control works with a differnt datatype. i.e. Textbox works with string data.

GenerateInputField ( ) : void

Creates the InputTemplate.

GenerateReadonlyField ( ) : void

Create the ReadOnlyTemplate.

GenerateSelectorField ( ) : void

Creates the SelectorTemplate.

GetTextBoxChangedListener ( DependencyObject obj ) : TextBox
GoToState ( DependencyObject element, string state ) : bool

Helper method to parse the visual tree of the ContentControl to look VisualStatue that are defined for ValidationStates category.

OnBindingValuePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnFieldNamePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnGeodatabaseFeaturePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnInputTemplatePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnIsReadOnlyPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnPropertyChanged ( [ propertyName = null ) : void
OnReadOnlyTemplatePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnSelectorTemplatePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnTextBoxChangedListenerPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnValidationExceptionPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
Refresh ( ) : void

This method is used to create the UI for the FeatureDataField.

SetTextBoxChangedListener ( DependencyObject obj, TextBox value ) : void
TryValidationState ( FrameworkElement element, string stateName ) : bool

Attempts to look for a VisualStateGroup called "ValidationState" and invoke the Storyboard for the given visual state.

UpdateValidationState ( ) : void

Changes the validation state from betwenn Invalid and Valid.

ValueChangedCallback ( object value ) : void

Callback used to track when the value changes in one of the DataItem classes.

txtbox_TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void

Method Details

FeatureDataField() public method

Initializes a new instance of the FeatureDataField class.
public FeatureDataField ( ) : System
return System

OnApplyTemplate() protected public method

protected public OnApplyTemplate ( ) : void
return void

Property Details

BindingValueProperty public_oe static_oe property

DependencyProperty for BindingValue.
public static DependencyProperty BindingValueProperty
return DependencyProperty

FieldNameProperty public_oe static_oe property

DependencyProperty for FieldName.
public static DependencyProperty FieldNameProperty
return DependencyProperty

GeodatabaseFeatureProperty public_oe static_oe property

DependencyProperty for GeodatabaseFeature.
public static DependencyProperty GeodatabaseFeatureProperty
return DependencyProperty

InputTemplateProperty public_oe static_oe property

DependencyProperty for InputTemplate.
public static DependencyProperty InputTemplateProperty
return DependencyProperty

IsReadOnlyProperty public_oe static_oe property

DependencyProperty for IsReadOnly.
public static DependencyProperty IsReadOnlyProperty
return DependencyProperty

ReadOnlyTemplateProperty public_oe static_oe property

DependencyProperty for ReadOnlyTemplate.
public static DependencyProperty ReadOnlyTemplateProperty
return DependencyProperty

SelectorTemplateProperty public_oe static_oe property

DependencyProperty for SelectorTemplate.
public static DependencyProperty SelectorTemplateProperty
return DependencyProperty

ValidationExceptionProperty public_oe static_oe property

DependencyProperty for ValidationException.
public static DependencyProperty ValidationExceptionProperty
return DependencyProperty