Class DataGridSettingBehavior
This SettingBehavior<T> stores the display settings for a System.Windows.Controls.DataGrid
Inheritance
Implements
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 |
---|---|
System.String |
StoreColumnIndexProperty
Identifies the System.Windows.DependencyProperty for the StoreColumnIndex property.
Declaration
public static readonly DependencyProperty StoreColumnIndexProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
StoreColumnSortInfosProperty
Identifies the System.Windows.DependencyProperty for the StoreColumnSortInfos property.
Declaration
public static readonly DependencyProperty StoreColumnSortInfosProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
StoreColumnVisibilityProperty
Identifies the System.Windows.DependencyProperty for the StoreColumnVisibility property.
Declaration
public static readonly DependencyProperty StoreColumnVisibilityProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
StoreColumnWidthProperty
Identifies the System.Windows.DependencyProperty for the StoreColumnWidth property.
Declaration
public static readonly DependencyProperty StoreColumnWidthProperty
Field Value
Type | Description |
---|---|
System.Windows.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 |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean |
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
OnDetaching()
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 |
---|---|---|
System.Object | value | A grid setting for restoring. |
Overrides
Store()
Gets the grid settings.
Declaration
public override object Store()
Returns
Type | Description |
---|---|
System.Object | A grid settings. |