PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/V4/PrismLibrary/Silverlight/Prism.MefExtensions/Regions/MefTabControlRegionAdapter.cs

#
C# | 44 lines | 15 code | 2 blank | 27 comment | 0 complexity | a0444f8d388532e3f835e983ced75b1c 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.ComponentModel.Composition;
  18. using Microsoft.Practices.Prism.Regions;
  19. namespace Microsoft.Practices.Prism.MefExtensions.Regions
  20. {
  21. /// <summary>
  22. /// Exports the ItemsControlRegionAdapter using the Managed Extensibility Framework (MEF).
  23. /// </summary>
  24. /// <remarks>
  25. /// This allows the MefBootstrapper to provide this class as a default implementation.
  26. /// If another implementation is found, this export will not be used.
  27. /// </remarks>
  28. [Export(typeof(TabControlRegionAdapter))]
  29. [PartCreationPolicy(CreationPolicy.Shared)]
  30. public class MefTabControlRegionAdapter : TabControlRegionAdapter
  31. {
  32. /// <summary>
  33. /// Initializes a new instance of the <see cref="MefItemsControlRegionAdapter"/> class.
  34. /// </summary>
  35. /// <param name="regionBehaviorFactory">The factory used to create the region behaviors to attach to the created regions.</param>
  36. [ImportingConstructor]
  37. public MefTabControlRegionAdapter(IRegionBehaviorFactory regionBehaviorFactory)
  38. : base(regionBehaviorFactory)
  39. {
  40. }
  41. }
  42. }