C# Class ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid

Inheritance: DataGrid
Afficher le fichier Open project: Esri/arcgis-toolkit-sl-wpf Class Usage Examples

Méthodes publiques

Свойство Type Description
DateTimeFormatProperty System.Windows.DependencyProperty
DateTimeKindProperty System.Windows.DependencyProperty
FilterSourceProperty System.Windows.DependencyProperty
GraphicsLayerProperty DependencyProperty
MapProperty DependencyProperty

Private Properties

Свойство Type Description
AllAttributesMatch bool
AreEqual bool
DatePicker_SelectedDateChanged void
DispatcherTimer_Tick void
FilterSource_CollectionChanged void
GetCorrespondingGridRow object
GetGraphicIndexInGraphicsCollection int
GetRowIndexInItemsSource int
GetRowIndexInItemsSource int
GetRowIndexInRowsCollection int
GoToVisualState void
Graphic_AttributeValueChanged void
GraphicsLayer_MouseEnter void
GraphicsLayer_MouseLeave void
GraphicsLayer_PropertyChanged void
Graphics_CollectionChanged void
OnFilterSourcePropertyChanged void
OnGraphicsLayerPropertyChanged void
PagedCollectionView_CollectionChanged void
PopulateItemsSource void
RegisterGraphicCollectionEventHandlers void
ResetLayout void
RestorePreviousSelection void
ScrollGridRowIntoView void
SelectAll void
SelectCurrentRecord void
SelectGraphics void
SetCurrentRecordNumberTextBox void
SetFieldAliasMapping void
SetItemsSource void
SetLayoutAndInternalVariables void
SetNumberOfRecordsTextBlock void
ShowNumberOfRecords void
UnregisterGraphicCollectionEventHandlers void
UpdateItemsSource void
ValidateCurrentRecordNumber void
XmlEncode string

Méthodes publiques

Méthode Description
FeatureDataGrid ( ) : System

Initializes a new instance of the FeatureDataGrid class.

GetGraphicFromRow ( object row ) : Graphic

Get a row from the FeatureDataGrid and returns the matching Graphic for the row.

OnApplyTemplate ( ) : void

When overridden in a derived class, is 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 an application.

ScrollIntoView ( Graphic graphic, DataGridColumn column ) : void

Scrolls the FeatureDataGrid vertically to display the row for the specified Graphic and scrolls the FeatureDataGrid horizontally to display the specified column.

Méthodes protégées

Méthode Description
OnAutoGeneratingColumn ( DataGridAutoGeneratingColumnEventArgs e ) : void

Raises the E:System.Windows.Controls.DataGrid.AutoGeneratingColumn event.

OnCellEditEnded ( DataGridCellEditEndedEventArgs e ) : void

Raises the E:System.Windows.Controls.DataGrid.CellEditEnded event.

OnCellEditEnding ( DataGridCellEditEndingEventArgs e ) : void

Raises the E:System.Windows.Controls.DataGrid.CellEditEnding event.

OnPreparingCellForEdit ( DataGridPreparingCellForEditEventArgs e ) : void

Raises the E:System.Windows.Controls.DataGrid.PreparingCellForEdit event.

OnRowEditEnded ( DataGridRowEditEndedEventArgs e ) : void

Raises the E:System.Windows.Controls.DataGrid.RowEditEnded event.

Private Methods

Méthode Description
AllAttributesMatch ( System itemsSourceProperties, object>.IDictionary graphicAttributes ) : bool
AreEqual ( object item, Graphic graphic ) : bool
DatePicker_SelectedDateChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
DispatcherTimer_Tick ( object sender, EventArgs e ) : void
FilterSource_CollectionChanged ( object sender, System e ) : void
GetCorrespondingGridRow ( Graphic graphic ) : object

Gets the corresponding row in FeatureDataGrid for the graphic.

GetGraphicIndexInGraphicsCollection ( Graphic graphic ) : int

Finds and returns the given graphics in the graphics collection in the GraphicsLayer.

GetRowIndexInItemsSource ( Graphic graphic ) : int
GetRowIndexInItemsSource ( object item ) : int
GetRowIndexInRowsCollection ( object gridRow ) : int

Finds and returns index of the given row in the ItemsSource object of the FeatureDataGrid.

GoToVisualState ( Graphic graphic, string stateName ) : void
Graphic_AttributeValueChanged ( object sender, ESRI e ) : void
GraphicsLayer_MouseEnter ( object sender, GraphicMouseEventArgs e ) : void
GraphicsLayer_MouseLeave ( object sender, GraphicMouseEventArgs e ) : void
GraphicsLayer_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
Graphics_CollectionChanged ( object sender, System e ) : void

Will be fired whenever there were any changes in graphics collection of the GraphicsLayer to update FeatureDataGrid's ItemsSource.

OnFilterSourcePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnGraphicsLayerPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
PagedCollectionView_CollectionChanged ( object sender, System e ) : void
PopulateItemsSource ( GraphicsLayer graphicsLayer, EventHandler handler ) : void

Populates associated GraphicsLayer's PropertyChanged event handler (if it's not a FeatureLayer) to update contents of the FeatureDataGrid when its Graphics collection changes. Also, checks whether the layer is a FeatureLayer and populates the internal LayerInfo and EndSaveEdits event handlers for editing purposes. At the end sets the ItemsSource of FeatureDataGrid and resets its internal variables states and values, and if it's called as a result of the Initialized event handler of GraphicsLayer unregisters the handler.

RegisterGraphicCollectionEventHandlers ( ) : void
ResetLayout ( ) : void
RestorePreviousSelection ( IEnumerable selectedGraphics ) : void
ScrollGridRowIntoView ( object item ) : void

Finds the row in the input parameter then scrolls the data gird vertically to make it visible to the user.

SelectAll ( ) : void

Selects all rows and graphic features.

SelectCurrentRecord ( ) : void

Selects current record in the FeatureDataGrid.

SelectGraphics ( IList rowsToLookup, bool shouldSelectGraphics ) : void

Selects/deselects related graphic objects in the GraphicsLayer when related grid rows have been selected/deselected by the user.

SetCurrentRecordNumberTextBox ( ) : void

Sets the text in current record number text box.

SetFieldAliasMapping ( DataGridColumn dgColumn, string fieldName, string fieldAlias ) : void
SetItemsSource ( IEnumerable graphics ) : void

Sets the FeatureDataGrid's ItemsSource after converting the source parameter to the proper format.

SetLayoutAndInternalVariables ( ) : void
SetNumberOfRecordsTextBlock ( int countSelected, int countTotal ) : void

Sets the text in number of records text block.

ShowNumberOfRecords ( ) : void

Shows number of selected records and total number of records in the grid row.

UnregisterGraphicCollectionEventHandlers ( ) : void
UpdateItemsSource ( object sender, System e ) : void

Updates contents of the ItemsSource when FeatureDataGrid's associated graphic collection changes.

ValidateCurrentRecordNumber ( ) : void

Validates current record number and sets an appropriate value based upon the accepted range.

XmlEncode ( string xml ) : string

Method Details

FeatureDataGrid() public méthode

Initializes a new instance of the FeatureDataGrid class.
public FeatureDataGrid ( ) : System
Résultat System

GetGraphicFromRow() public méthode

Get a row from the FeatureDataGrid and returns the matching Graphic for the row.
public GetGraphicFromRow ( object row ) : Graphic
row object Row object from FeatureDataGrid.ItemsSource collection
Résultat Graphic

OnApplyTemplate() public méthode

When overridden in a derived class, is 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 an application.
public OnApplyTemplate ( ) : void
Résultat void

OnAutoGeneratingColumn() protected méthode

Raises the E:System.Windows.Controls.DataGrid.AutoGeneratingColumn event.
protected OnAutoGeneratingColumn ( DataGridAutoGeneratingColumnEventArgs e ) : void
e DataGridAutoGeneratingColumnEventArgs The event data.
Résultat void

OnCellEditEnded() protected méthode

Raises the E:System.Windows.Controls.DataGrid.CellEditEnded event.
protected OnCellEditEnded ( DataGridCellEditEndedEventArgs e ) : void
e DataGridCellEditEndedEventArgs The event data.
Résultat void

OnCellEditEnding() protected méthode

Raises the E:System.Windows.Controls.DataGrid.CellEditEnding event.
protected OnCellEditEnding ( DataGridCellEditEndingEventArgs e ) : void
e DataGridCellEditEndingEventArgs The event data.
Résultat void

OnPreparingCellForEdit() protected méthode

Raises the E:System.Windows.Controls.DataGrid.PreparingCellForEdit event.
protected OnPreparingCellForEdit ( DataGridPreparingCellForEditEventArgs e ) : void
e DataGridPreparingCellForEditEventArgs The event data.
Résultat void

OnRowEditEnded() protected méthode

Raises the E:System.Windows.Controls.DataGrid.RowEditEnded event.
protected OnRowEditEnded ( DataGridRowEditEndedEventArgs e ) : void
e DataGridRowEditEndedEventArgs The event data.
Résultat void

ScrollIntoView() public méthode

Scrolls the FeatureDataGrid vertically to display the row for the specified Graphic and scrolls the FeatureDataGrid horizontally to display the specified column.
public ScrollIntoView ( Graphic graphic, DataGridColumn column ) : void
graphic Graphic The graphic.
column DataGridColumn The column.
Résultat void

Property Details

DateTimeFormatProperty public_oe static_oe property

The dependency property used for DateTimeFormat.
public static DependencyProperty,System.Windows DateTimeFormatProperty
Résultat System.Windows.DependencyProperty

DateTimeKindProperty public_oe static_oe property

The dependency property used for DateTimeKind.
public static DependencyProperty,System.Windows DateTimeKindProperty
Résultat System.Windows.DependencyProperty

FilterSourceProperty public_oe static_oe property

Identifies the FilterSource dependency property.
public static DependencyProperty,System.Windows FilterSourceProperty
Résultat System.Windows.DependencyProperty

GraphicsLayerProperty public_oe static_oe property

Identifies the GraphicsLayer dependency property.
public static DependencyProperty GraphicsLayerProperty
Résultat DependencyProperty

MapProperty public_oe static_oe property

Identifies the Map dependency property.
public static DependencyProperty MapProperty
Résultat DependencyProperty