Show / Hide Table of Contents

Class DataGridSettingBehavior

Base class for all settings stored via xaml.

Inheritance
object
DispatcherObject
DependencyObject
Freezable
Animatable
Behavior
Behavior<DataGrid>
SettingBehavior<DataGrid>
DataGridSettingBehavior
Implements
IAnimatable
IAttachedObject
IUiElementSettings
SettingBehavior<DataGrid>.SettingKey
SettingBehavior<DataGrid>.SettingKeyProperty
Behavior<DataGrid>.AssociatedObject
Behavior.CreateInstanceCore()
Behavior.Attach(DependencyObject)
Behavior.Detach()
Behavior.AssociatedType
Animatable.ApplyAnimationClock(DependencyProperty, AnimationClock)
Animatable.ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)
Animatable.BeginAnimation(DependencyProperty, AnimationTimeline)
Animatable.BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)
Animatable.Clone()
Animatable.FreezeCore(bool)
Animatable.GetAnimationBaseValue(DependencyProperty)
Animatable.HasAnimatedProperties
Freezable.CloneCore(Freezable)
Freezable.CloneCurrentValue()
Freezable.CloneCurrentValueCore(Freezable)
Freezable.CreateInstance()
Freezable.Freeze()
Freezable.Freeze(Freezable, bool)
Freezable.GetAsFrozen()
Freezable.GetAsFrozenCore(Freezable)
Freezable.GetCurrentValueAsFrozen()
Freezable.GetCurrentValueAsFrozenCore(Freezable)
Freezable.OnChanged()
Freezable.OnFreezablePropertyChanged(DependencyObject, DependencyObject)
Freezable.OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)
Freezable.OnPropertyChanged(DependencyPropertyChangedEventArgs)
Freezable.ReadPreamble()
Freezable.WritePostscript()
Freezable.WritePreamble()
Freezable.CanFreeze
Freezable.IsFrozen
Freezable.Changed
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Equals(object)
DependencyObject.GetHashCode()
DependencyObject.GetLocalValueEnumerator()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.InvalidateProperty(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyPropertyKey, object)
DependencyObject.ShouldSerializeProperty(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DispatcherObject.Dispatcher
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
string
View Source

StoreColumnIndexProperty

Identifies the DependencyProperty for the StoreColumnIndex property.

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

StoreColumnSortInfosProperty

Identifies the DependencyProperty for the StoreColumnSortInfos property.

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

StoreColumnVisibilityProperty

Identifies the DependencyProperty for the StoreColumnVisibility property.

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

StoreColumnWidthProperty

Identifies the DependencyProperty for the StoreColumnWidth property.

Declaration
public static readonly DependencyProperty StoreColumnWidthProperty
Field Value
Type Description
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
bool
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
bool
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
bool
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
bool

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
SettingBehavior<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
object value

A grid setting for restoring.

Overrides
SettingBehavior<DataGrid>.Restore(object)
View Source

Store()

Gets the grid settings.

Declaration
public override object Store()
Returns
Type Description
object

A grid settings.

Overrides
SettingBehavior<DataGrid>.Store()

Implements

IAnimatable
Microsoft.Xaml.Behaviors.IAttachedObject
IUiElementSettings

Extension Methods

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