|
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System.Reflection;
using Microsoft.Windows.Controls.Design.Common;
using Microsoft.Windows.Design.Metadata;
namespace Microsoft.Windows.Controls.Theming.Expression.Design
{
/// <summary>
/// MetadataRegistration class.
/// </summary>
public class MetadataRegistration : MetadataRegistrationBase, IRegisterMetadata
{
/// <summary>
/// Borrowed from System.Windows.Controls.Toolbox.Design.MetadataRegistration:
/// use a static flag to ensure metadata is registered only one.
/// </summary>
private static bool _initialized;
/// <summary>
/// Called by tools to register design time metadata.
/// </summary>
public void Register()
{
if (!_initialized)
{
MetadataStore.AddAttributeTable(BuildAttributeTable());
_initialized = true;
}
}
/// <summary>
/// Provide a place to add custom attributes without creating a AttributeTableBuilder subclass.
/// </summary>
/// <param name="builder">The assembly attribute table builder.</param>
protected override void AddAttributes(AttributeTableBuilder builder)
{
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.