Class WindowDragMoveBehavior
Behavior for the activation of windows DragMove functionality.
Behavior<FrameworkElement>.AssociatedObject
Behavior.CreateInstanceCore()
Behavior.Detach()
Behavior.AssociatedType
Namespace: Sartorius.SAF.Presentation.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class WindowDragMoveBehavior : Behavior<FrameworkElement>, IAnimatable, IAttachedObject
Fields
View SourceDisableAeroSnapEffectProperty
A dependency property definition. Indicates whether the aero snap effect should be disabled during dragging.
Declaration
public static readonly DependencyProperty DisableAeroSnapEffectProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsDraggingProperty
The DependencyProperty for the IsDragging property.
Declaration
public static readonly DependencyProperty IsDraggingProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceDisableAeroSnapEffect
Indicates whether the aero snap effect should be disabled during dragging.
Declaration
public bool DisableAeroSnapEffect { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsDragging
Gets a value indicating whether the Window is currently dragged.
Declaration
public bool IsDragging { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceOnAttached()
Called by creating instance.
Declaration
protected override void OnAttached()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnAttached()
View Source
OnDetaching()
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
Declaration
protected override void OnDetaching()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnDetaching()
Remarks
Override this to unhook functionality from the AssociatedObject.
Implements
Microsoft.Xaml.Behaviors.IAttachedObject