PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/V2/trunk/RI/Desktop/StockTraderRI.Infrastructure/Behaviors/IWindow.cs

#
C# | 57 lines | 14 code | 6 blank | 37 comment | 0 complexity | fb1bfe86916b7e69de2e9f400fd53b14 MD5 | raw file
 1//===================================================================================
 2// Microsoft patterns & practices
 3// Composite Application Guidance for Windows Presentation Foundation and Silverlight
 4//===================================================================================
 5// Copyright (c) Microsoft Corporation.  All rights reserved.
 6// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
 7// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
 8// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 9// FITNESS FOR A PARTICULAR PURPOSE.
10//===================================================================================
11// The example companies, organizations, products, domain names,
12// e-mail addresses, logos, people, places, and events depicted
13// herein are fictitious.  No association with any real company,
14// organization, product, domain name, email address, logo, person,
15// places, or events is intended or should be inferred.
16//===================================================================================
17using System;
18using System.Windows;
19
20namespace StockTraderRI.Infrastructure.Behaviors
21{
22    /// <summary>
23    /// Defines the interface for the Dialogs that are shown by <see cref="DialogActivationBehavior"/>.
24    /// </summary>
25    public interface IWindow
26    {
27        /// <summary>
28        /// Ocurrs when the <see cref="IWindow"/> is closed.
29        /// </summary>
30        event EventHandler Closed;
31
32        /// <summary>
33        /// Gets or sets the content for the <see cref="IWindow"/>.
34        /// </summary>
35        object Content { get; set; }
36
37        /// <summary>
38        /// Gets or sets the owner control of the <see cref="IWindow"/>.
39        /// </summary>
40        object Owner { get; set; }
41
42        /// <summary>
43        /// Gets or sets the <see cref="System.Windows.Style"/> to apply to the <see cref="IWindow"/>.
44        /// </summary>
45        Style Style { get; set; }
46
47        /// <summary>
48        /// Opens the <see cref="IWindow"/>.
49        /// </summary>
50        void Show();
51
52        /// <summary>
53        /// Closes the <see cref="IWindow"/>.
54        /// </summary>
55        void Close();
56    }
57}