Class WindowResizeBehavior
A behavior that moves the window hid conform on size change
Behavior<Window>.AssociatedObject
Behavior.CreateInstanceCore()
Behavior.Detach()
Behavior.AssociatedType
Namespace: Sartorius.SAF.Presentation.Controls.Behaviors
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class WindowResizeBehavior : Behavior<Window>, IAnimatable, IAttachedObject
Methods
View SourceCalculatePositionForBoundaries(double, double, double, int, int, bool, bool)
Calculates the position for boundaries.
Declaration
public static double CalculatePositionForBoundaries(double windowOnScreenPosition, double currentWindowSize, double expandSize, int screenOffset, int workingareaSize, bool windowWasStuckedToLowerBorder, bool windowWasStuckedToHigherBorder)
Parameters
| Type | Name | Description |
|---|---|---|
| double | windowOnScreenPosition | The window on screen position. |
| double | currentWindowSize | Size of the current window. |
| double | expandSize | Size of the expand. |
| int | screenOffset | The screen working area. |
| int | workingareaSize | Size of the workingarea. |
| bool | windowWasStuckedToLowerBorder | if set to |
| bool | windowWasStuckedToHigherBorder | if set to |
Returns
| Type | Description |
|---|---|
| double |
OnAttached()
Called after the behavior is attached to an AssociatedObject.
Declaration
protected override void OnAttached()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnAttached()
Remarks
Override this to hook up functionality to the AssociatedObject.
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