Class DataGridSettingBehavior
Base class for all settings stored via xaml.
Namespace: Sartorius.SAF.Presentation.Controls.Behaviors
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class DataGridSettingBehavior : SettingBehavior<DataGrid>, IAnimatable, IAttachedObject, IUiElementSettings
Fields
View SourceColumnsMetaSortDescription
The columns meta sort description
Declaration
protected const string ColumnsMetaSortDescription = "columnsMetaSortDescription"
Field Value
| Type | Description |
|---|---|
| string |
StoreColumnIndexProperty
Identifies the DependencyProperty for the StoreColumnIndex property.
Declaration
public static readonly DependencyProperty StoreColumnIndexProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
StoreColumnSortInfosProperty
Identifies the DependencyProperty for the StoreColumnSortInfos property.
Declaration
public static readonly DependencyProperty StoreColumnSortInfosProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
StoreColumnVisibilityProperty
Identifies the DependencyProperty for the StoreColumnVisibility property.
Declaration
public static readonly DependencyProperty StoreColumnVisibilityProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
StoreColumnWidthProperty
Identifies the DependencyProperty for the StoreColumnWidth property.
Declaration
public static readonly DependencyProperty StoreColumnWidthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceMetaDataGrid
Gets the meta grid.
Declaration
protected MetaDataGrid MetaDataGrid { get; }
Property Value
| Type | Description |
|---|---|
| MetaDataGrid | The meta grid. |
StoreColumnIndex
Gets or sets a value indicating whether the ColumnIndex should be stored.
Declaration
public bool StoreColumnIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
StoreColumnSortInfos
Gets or sets a value indicating whether the sorting state of columns should be stored.
Declaration
public bool StoreColumnSortInfos { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
StoreColumnVisibility
Gets or sets a value indicating whether the visibility of columns should be stored.
Declaration
public bool StoreColumnVisibility { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
StoreColumnWidth
Gets or sets a value indicating whether the width of columns should be stored.
Declaration
public bool StoreColumnWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceApplySortDescriptions()
Applies the sorting on the collection and refreshes the column views
Declaration
protected void ApplySortDescriptions()
OnAttached()
Initialize the grid behavior and sets the default values.
Declaration
protected override void OnAttached()
Overrides
View SourceOnDetaching()
Is called after the behavior is detached from the AssociatedObject.
Declaration
protected override void OnDetaching()
Overrides
Restore(object)
Restore the given grid settings.
Declaration
public override void Restore(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | A grid setting for restoring. |
Overrides
View SourceStore()
Gets the grid settings.
Declaration
public override object Store()
Returns
| Type | Description |
|---|---|
| object | A grid settings. |