/V4/PrismLibrary/Silverlight/Prism.MefExtensions/Regions/MefTabControlRegionAdapter.cs
C# | 44 lines | 15 code | 2 blank | 27 comment | 0 complexity | a0444f8d388532e3f835e983ced75b1c 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.ComponentModel.Composition;
- using Microsoft.Practices.Prism.Regions;
-
- namespace Microsoft.Practices.Prism.MefExtensions.Regions
- {
- /// <summary>
- /// Exports the ItemsControlRegionAdapter using the Managed Extensibility Framework (MEF).
- /// </summary>
- /// <remarks>
- /// This allows the MefBootstrapper to provide this class as a default implementation.
- /// If another implementation is found, this export will not be used.
- /// </remarks>
- [Export(typeof(TabControlRegionAdapter))]
- [PartCreationPolicy(CreationPolicy.Shared)]
- public class MefTabControlRegionAdapter : TabControlRegionAdapter
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="MefItemsControlRegionAdapter"/> class.
- /// </summary>
- /// <param name="regionBehaviorFactory">The factory used to create the region behaviors to attach to the created regions.</param>
- [ImportingConstructor]
- public MefTabControlRegionAdapter(IRegionBehaviorFactory regionBehaviorFactory)
- : base(regionBehaviorFactory)
- {
- }
- }
-
- }