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