Class DataGridColumnHeadersPresenter
Handles column header drags in a DataGrid
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_FillerColumnHeader", Type = typeof(DataGridColumnHeader))]
public class DataGridColumnHeadersPresenter : DataGridColumnHeadersPresenter, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IContainItemStorage, IAddChild
Properties
View SourceAvailableSize
Gets the available size.
Declaration
protected Size AvailableSize { get; }
Property Value
| Type | Description |
|---|---|
| Size | The available size. |
CellsPanel
Gets or sets the cells panel.
Declaration
public UIElement CellsPanel { get; protected set; }
Property Value
| Type | Description |
|---|---|
| UIElement | The cells panel. |
VisualChildrenCount
Gets the number of Visual children in this presenter.
Declaration
protected override int VisualChildrenCount { get; }
Property Value
| Type | Description |
|---|---|
| int | The number of visual children. |
Overrides
Methods
View SourceArrangeOverride(Size)
Arranges the DataGridColumnHeadersPresenter.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | finalSize | The final area within the parent that this element should use to arrange itself and its children. |
Returns
| Type | Description |
|---|---|
| Size | The size of the control. |
Overrides
Remarks
Arranges the drag and drop location indicator.
ClearContainerForItemOverride(DependencyObject, object)
Clears the container for an item.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The container element. |
| object | item | The item that the container represents. |
Overrides
Remarks
Notifies the DataGridColumnHeader that it is cleared.
GetContainerForItemOverride()
Returns a new DataGridColumnHeader instance to contain a column header value.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
| Type | Description |
|---|---|
| DependencyObject | A new DataGridColumnHeader instance. |
Overrides
View SourceGetVisualChild(int)
Returns the Visual child at the specified index.
Declaration
protected override Visual GetVisualChild(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index of the Visual child to return. |
Returns
| Type | Description |
|---|---|
| Visual | The child. |
Overrides
View SourceInvalidateCellsPanelMeasure()
Invalidates the cells panel measure.
Declaration
public void InvalidateCellsPanelMeasure()
IsItemItsOwnContainerOverride(object)
Checks whether an item is its own container.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| object | item | The item to check. |
Returns
| Type | Description |
|---|---|
| bool | true if the item is (or is eligible to be) its own container; otherwise, false. |
Overrides
View SourceMeasureOverride(Size)
Measures the control.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | availableSize | The available size that this element can give to child elements. |
Returns
| Type | Description |
|---|---|
| Size | The size of the control, up to the maximum specified by |
Overrides
View SourceOnApplyTemplate()
Applies the template for the DataGridColumnHeadersPresenter.
Declaration
public override void OnApplyTemplate()
Overrides
View SourcePrepareContainerForItemOverride(DependencyObject, object)
Prepares the container for an item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | Element used to display the specified item. |
| object | item | Specified item. |
Overrides
Remarks
Notifies the DataGridColumnHeader that it is getting prepared.