using System;
using System.ComponentModel;
using System.Windows;
namespace WxOrder.Framework.Commons.Dialogs
{
///
/// Interface for a dialog hosting window.
///
public interface IDialogWindow
{
///
/// Dialog content.
///
object Content { get; set; }
///
/// Close the window.
///
void Close();
///
/// The window's owner.
///
Window Owner { get; set; }
///
/// Show a non-modal dialog.
///
void Show();
///
/// Show a modal dialog.
///
///
bool? ShowDialog();
///
/// The data context of the window.
///
///
/// The data context must implement .
///
object DataContext { get; set; }
///
/// Called when the window is loaded.
///
event RoutedEventHandler Loaded;
///
/// Called when the window is closed.
///
event EventHandler Closed;
///
/// Called when the window is closing.
///
event CancelEventHandler Closing;
///
/// The result of the dialog.
///
IDialogResult Result { get; set; }
///
/// The window style.
///
Style Style { get; set; }
}
}