Class SettingBehavior<T>
Base class for all settings stored via xaml.
Inheritance
Behavior
Behavior<T>
SettingBehavior<T>
Behavior<T>.AssociatedObject
Behavior.OnDetaching()
Behavior.CreateInstanceCore()
Behavior.Detach()
Behavior.AssociatedType
Namespace: Sartorius.SAF.Presentation.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public abstract class SettingBehavior<T> : Behavior<T>, IAnimatable, IAttachedObject, IUiElementSettings where T : FrameworkElement
Type Parameters
| Name | Description |
|---|---|
| T |
Fields
View SourceSettingKeyProperty
Defines the dependency property of the SettingKey property.
Declaration
public static readonly DependencyProperty SettingKeyProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceSettingKey
Gets or sets the key of the setting. The key is used to save and restore the setting.
Declaration
public string SettingKey { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceOnAttached()
set the HasUISettings attached property automatically to the control that defines the UI setting
Declaration
protected override void OnAttached()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnAttached()
View Source
Restore(object)
Restore a given settings.
Declaration
public abstract void Restore(object settings)
Parameters
| Type | Name | Description |
|---|---|---|
| object | settings |
Store()
Gets the control settings.
Declaration
public abstract object Store()
Returns
| Type | Description |
|---|---|
| object |
Implements
Microsoft.Xaml.Behaviors.IAttachedObject