/V2/trunk/RI/Desktop/StockTraderRI.Infrastructure/Behaviors/IWindow.cs
C# | 57 lines | 14 code | 6 blank | 37 comment | 0 complexity | fb1bfe86916b7e69de2e9f400fd53b14 MD5 | raw file
- //===================================================================================
- // Microsoft patterns & practices
- // Composite Application Guidance for Windows Presentation Foundation and Silverlight
- //===================================================================================
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
- // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
- // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- // FITNESS FOR A PARTICULAR PURPOSE.
- //===================================================================================
- // The example companies, organizations, products, domain names,
- // e-mail addresses, logos, people, places, and events depicted
- // herein are fictitious. No association with any real company,
- // organization, product, domain name, email address, logo, person,
- // places, or events is intended or should be inferred.
- //===================================================================================
- using System;
- using System.Windows;
-
- namespace StockTraderRI.Infrastructure.Behaviors
- {
- /// <summary>
- /// Defines the interface for the Dialogs that are shown by <see cref="DialogActivationBehavior"/>.
- /// </summary>
- public interface IWindow
- {
- /// <summary>
- /// Ocurrs when the <see cref="IWindow"/> is closed.
- /// </summary>
- event EventHandler Closed;
-
- /// <summary>
- /// Gets or sets the content for the <see cref="IWindow"/>.
- /// </summary>
- object Content { get; set; }
-
- /// <summary>
- /// Gets or sets the owner control of the <see cref="IWindow"/>.
- /// </summary>
- object Owner { get; set; }
-
- /// <summary>
- /// Gets or sets the <see cref="System.Windows.Style"/> to apply to the <see cref="IWindow"/>.
- /// </summary>
- Style Style { get; set; }
-
- /// <summary>
- /// Opens the <see cref="IWindow"/>.
- /// </summary>
- void Show();
-
- /// <summary>
- /// Closes the <see cref="IWindow"/>.
- /// </summary>
- void Close();
- }
- }