C# Класс ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid

Наследование: DataGrid
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DateTimeFormatProperty System.Windows.DependencyProperty
DateTimeKindProperty System.Windows.DependencyProperty
FilterSourceProperty System.Windows.DependencyProperty
GraphicsLayerProperty DependencyProperty
MapProperty DependencyProperty

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

FeatureDataGrid() публичный Метод

Initializes a new instance of the FeatureDataGrid class.
public FeatureDataGrid ( ) : System
Результат System

GetGraphicFromRow() публичный Метод

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
Результат Graphic

OnApplyTemplate() публичный Метод

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
Результат void

OnAutoGeneratingColumn() защищенный Метод

Raises the E:System.Windows.Controls.DataGrid.AutoGeneratingColumn event.
protected OnAutoGeneratingColumn ( DataGridAutoGeneratingColumnEventArgs e ) : void
e DataGridAutoGeneratingColumnEventArgs The event data.
Результат void

OnCellEditEnded() защищенный Метод

Raises the E:System.Windows.Controls.DataGrid.CellEditEnded event.
protected OnCellEditEnded ( DataGridCellEditEndedEventArgs e ) : void
e DataGridCellEditEndedEventArgs The event data.
Результат void

OnCellEditEnding() защищенный Метод

Raises the E:System.Windows.Controls.DataGrid.CellEditEnding event.
protected OnCellEditEnding ( DataGridCellEditEndingEventArgs e ) : void
e DataGridCellEditEndingEventArgs The event data.
Результат void

OnPreparingCellForEdit() защищенный Метод

Raises the E:System.Windows.Controls.DataGrid.PreparingCellForEdit event.
protected OnPreparingCellForEdit ( DataGridPreparingCellForEditEventArgs e ) : void
e DataGridPreparingCellForEditEventArgs The event data.
Результат void

OnRowEditEnded() защищенный Метод

Raises the E:System.Windows.Controls.DataGrid.RowEditEnded event.
protected OnRowEditEnded ( DataGridRowEditEndedEventArgs e ) : void
e DataGridRowEditEndedEventArgs The event data.
Результат void

ScrollIntoView() публичный Метод

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.
Результат void

Описание свойств

DateTimeFormatProperty публичное статическое свойство

The dependency property used for DateTimeFormat.
public static DependencyProperty,System.Windows DateTimeFormatProperty
Результат System.Windows.DependencyProperty

DateTimeKindProperty публичное статическое свойство

The dependency property used for DateTimeKind.
public static DependencyProperty,System.Windows DateTimeKindProperty
Результат System.Windows.DependencyProperty

FilterSourceProperty публичное статическое свойство

Identifies the FilterSource dependency property.
public static DependencyProperty,System.Windows FilterSourceProperty
Результат System.Windows.DependencyProperty

GraphicsLayerProperty публичное статическое свойство

Identifies the GraphicsLayer dependency property.
public static DependencyProperty GraphicsLayerProperty
Результат DependencyProperty

MapProperty публичное статическое свойство

Identifies the Map dependency property.
public static DependencyProperty MapProperty
Результат DependencyProperty