PageRenderTime 43ms CodeModel.GetById 11ms RepoModel.GetById 0ms 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. //===================================================================================
  17. using System;
  18. using System.Windows;
  19. namespace StockTraderRI.Infrastructure.Behaviors
  20. {
  21. /// <summary>
  22. /// Defines the interface for the Dialogs that are shown by <see cref="DialogActivationBehavior"/>.
  23. /// </summary>
  24. public interface IWindow
  25. {
  26. /// <summary>
  27. /// Ocurrs when the <see cref="IWindow"/> is closed.
  28. /// </summary>
  29. event EventHandler Closed;
  30. /// <summary>
  31. /// Gets or sets the content for the <see cref="IWindow"/>.
  32. /// </summary>
  33. object Content { get; set; }
  34. /// <summary>
  35. /// Gets or sets the owner control of the <see cref="IWindow"/>.
  36. /// </summary>
  37. object Owner { get; set; }
  38. /// <summary>
  39. /// Gets or sets the <see cref="System.Windows.Style"/> to apply to the <see cref="IWindow"/>.
  40. /// </summary>
  41. Style Style { get; set; }
  42. /// <summary>
  43. /// Opens the <see cref="IWindow"/>.
  44. /// </summary>
  45. void Show();
  46. /// <summary>
  47. /// Closes the <see cref="IWindow"/>.
  48. /// </summary>
  49. void Close();
  50. }
  51. }