mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 10:21:16 +00:00
25 lines
570 B
C#
25 lines
570 B
C#
using System.Windows;
|
|
using System.Windows.Interactivity;
|
|
using System.Windows.Interop;
|
|
|
|
namespace BrightSharp.Behaviors
|
|
{
|
|
public class WindowMinMaxSizeBehavior : Behavior<Window>
|
|
{
|
|
private MinMaxSize_Logic logic;
|
|
protected override void OnAttached()
|
|
{
|
|
base.OnAttached();
|
|
logic = new MinMaxSize_Logic(AssociatedObject);
|
|
logic.OnAttached();
|
|
}
|
|
|
|
|
|
protected override void OnDetaching()
|
|
{
|
|
logic.OnDetaching();
|
|
base.OnDetaching();
|
|
}
|
|
}
|
|
}
|