1// Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2// This file is distributed under GPL v3. See LICENSE.md for details.
3using System.Windows;
4using System.Windows.Controls.Primitives;
5
6namespace SiliconStudio.Presentation.Behaviors
7 {
8 /// <summary>
9 /// A behavior that can be attached to a <see cref="ButtonBase"/> and will close the window it is contained in when clicked. Note that if a command is attached to the button, it will be executed after the window is closed.
10 /// If you need to execute a command before closing the window, you can use the <see cref="CloseWindowBehavior{T}.Command"/> and <see cref="CloseWindowBehavior{T}.CommandParameter"/> property of this behavior.