Show / Hide Table of Contents

Class DataGridSettingBehavior

This SettingBehavior<T> stores the display settings for a System.Windows.Controls.DataGrid

Inheritance
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Freezable
System.Windows.Media.Animation.Animatable
Microsoft.Xaml.Behaviors.Behavior
Microsoft.Xaml.Behaviors.Behavior<System.Windows.Controls.DataGrid>
SettingBehavior<System.Windows.Controls.DataGrid>
DataGridSettingBehavior
Implements
System.Windows.Media.Animation.IAnimatable
Microsoft.Xaml.Behaviors.IAttachedObject
IUIElementSettings
SettingBehavior<DataGrid>.SettingKey
SettingBehavior<DataGrid>.SettingKeyProperty
Microsoft.Xaml.Behaviors.Behavior<System.Windows.Controls.DataGrid>.AssociatedObject
Microsoft.Xaml.Behaviors.Behavior.CreateInstanceCore()
Microsoft.Xaml.Behaviors.Behavior.Attach(System.Windows.DependencyObject)
Microsoft.Xaml.Behaviors.Behavior.Detach()
Microsoft.Xaml.Behaviors.Behavior.AssociatedType
Microsoft.Xaml.Behaviors.Behavior.Microsoft.Xaml.Behaviors.IAttachedObject.AssociatedObject
System.Windows.Media.Animation.Animatable.ApplyAnimationClock(System.Windows.DependencyProperty, System.Windows.Media.Animation.AnimationClock)
System.Windows.Media.Animation.Animatable.ApplyAnimationClock(System.Windows.DependencyProperty, System.Windows.Media.Animation.AnimationClock, System.Windows.Media.Animation.HandoffBehavior)
System.Windows.Media.Animation.Animatable.BeginAnimation(System.Windows.DependencyProperty, System.Windows.Media.Animation.AnimationTimeline)
System.Windows.Media.Animation.Animatable.BeginAnimation(System.Windows.DependencyProperty, System.Windows.Media.Animation.AnimationTimeline, System.Windows.Media.Animation.HandoffBehavior)
System.Windows.Media.Animation.Animatable.Clone()
System.Windows.Media.Animation.Animatable.FreezeCore(System.Boolean)
System.Windows.Media.Animation.Animatable.GetAnimationBaseValue(System.Windows.DependencyProperty)
System.Windows.Media.Animation.Animatable.HasAnimatedProperties
System.Windows.Freezable.CloneCore(System.Windows.Freezable)
System.Windows.Freezable.CloneCurrentValue()
System.Windows.Freezable.CloneCurrentValueCore(System.Windows.Freezable)
System.Windows.Freezable.CreateInstance()
System.Windows.Freezable.Freeze()
System.Windows.Freezable.Freeze(System.Windows.Freezable, System.Boolean)
System.Windows.Freezable.GetAsFrozen()
System.Windows.Freezable.GetAsFrozenCore(System.Windows.Freezable)
System.Windows.Freezable.GetCurrentValueAsFrozen()
System.Windows.Freezable.GetCurrentValueAsFrozenCore(System.Windows.Freezable)
System.Windows.Freezable.OnChanged()
System.Windows.Freezable.OnFreezablePropertyChanged(System.Windows.DependencyObject, System.Windows.DependencyObject)
System.Windows.Freezable.OnFreezablePropertyChanged(System.Windows.DependencyObject, System.Windows.DependencyObject, System.Windows.DependencyProperty)
System.Windows.Freezable.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
System.Windows.Freezable.ReadPreamble()
System.Windows.Freezable.WritePostscript()
System.Windows.Freezable.WritePreamble()
System.Windows.Freezable.CanFreeze
System.Windows.Freezable.IsFrozen
System.Windows.Freezable.Changed
System.Windows.DependencyObject.ClearValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.ClearValue(System.Windows.DependencyPropertyKey)
System.Windows.DependencyObject.CoerceValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.Equals(System.Object)
System.Windows.DependencyObject.GetHashCode()
System.Windows.DependencyObject.GetLocalValueEnumerator()
System.Windows.DependencyObject.GetValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty)
System.Windows.DependencyObject.ReadLocalValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.SetCurrentValue(System.Windows.DependencyProperty, System.Object)
System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
System.Windows.DependencyObject.SetValue(System.Windows.DependencyPropertyKey, System.Object)
System.Windows.DependencyObject.ShouldSerializeProperty(System.Windows.DependencyProperty)
System.Windows.DependencyObject.DependencyObjectType
System.Windows.DependencyObject.IsSealed
System.Windows.Threading.DispatcherObject.Dispatcher
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls.Behaviors
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class DataGridSettingBehavior : SettingBehavior<DataGrid>, IAnimatable, IAttachedObject, IUIElementSettings

Fields

View Source

ColumnsMetaSortDescription

The columns meta sort description

Declaration
protected const string ColumnsMetaSortDescription = "columnsMetaSortDescription"
Field Value
Type Description
System.String
View Source

StoreColumnIndexProperty

Identifies the System.Windows.DependencyProperty for the StoreColumnIndex property.

Declaration
public static readonly DependencyProperty StoreColumnIndexProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

StoreColumnSortInfosProperty

Identifies the System.Windows.DependencyProperty for the StoreColumnSortInfos property.

Declaration
public static readonly DependencyProperty StoreColumnSortInfosProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

StoreColumnVisibilityProperty

Identifies the System.Windows.DependencyProperty for the StoreColumnVisibility property.

Declaration
public static readonly DependencyProperty StoreColumnVisibilityProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

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 Source

MetaDataGrid

Gets the meta grid.

Declaration
protected MetaDataGrid MetaDataGrid { get; }
Property Value
Type Description
MetaDataGrid

The meta grid.

View Source

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
View Source

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
View Source

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
View Source

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 Source

ApplySortDescriptions()

Applies the sorting on the collection and refreshes the column views

Declaration
protected void ApplySortDescriptions()
View Source

OnAttached()

Initialize the grid behavior and sets the default values.

Declaration
protected override void OnAttached()
Overrides
Sartorius.SAF.Presentation.Behaviors.SettingBehavior<System.Windows.Controls.DataGrid>.OnAttached()
View Source

OnDetaching()

Is called after the behavior is detached from the AssociatedObject.

Declaration
protected override void OnDetaching()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnDetaching()
View Source

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
Sartorius.SAF.Presentation.Behaviors.SettingBehavior<System.Windows.Controls.DataGrid>.Restore(System.Object)
View Source

Store()

Gets the grid settings.

Declaration
public override object Store()
Returns
Type Description
System.Object

A grid settings.

Overrides
Sartorius.SAF.Presentation.Behaviors.SettingBehavior<System.Windows.Controls.DataGrid>.Store()

Implements

System.Windows.Media.Animation.IAnimatable
Microsoft.Xaml.Behaviors.IAttachedObject
IUIElementSettings

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
DependencyObjectExtensions.GetContainer(DependencyObject)
DependencyObjectExtensions.SetContainer(DependencyObject, CompositionContainer)
DependencyObjectExtensions.FindAncestor<T>(DependencyObject)
DependencyObjectExtensions.FindFirstChildByType<T>(DependencyObject)
DependencyObjectExtensions.FindLogicalAncestor<T>(DependencyObject)
DependencyObjectExtensions.GetChildsByType<T>(DependencyObject, List<T>)
DependencyObjectExtensions.GetChildrenByType<T>(DependencyObject)
DependencyObjectExtensions.XamlClone<T>(T)
  • View Source
Back to top Generated by DocFX