namespace InlineEditorNamespace
{
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Windows.Design.Metadata;
using System.ComponentModel;
using Microsoft.Windows.Design.PropertyEditing;
using System.Windows.Media;
using System.Windows.Controls;
using System.Windows;
using CustomControlLibrary;
// Container for any general design-time metadata that we want to initialize.
// Designers will look for a type in the design-time assembly that implements IRegisterMetadata.
// If found, they will instantiate it and call its Register() method automatically.
internal class Metadata : IRegisterMetadata
{
// Called by Cider to register any design-time metadata
public void Register()
{
AttributeTableBuilder builder = new AttributeTableBuilder();
builder.AddCustomAttributes
(typeof(CustomControl1),
Control.BackgroundProperty,
PropertyValueEditor.CreateEditorAttribute(
typeof(BrushInlineEditor)));
MetadataStore.AddAttributeTable(builder.CreateTable());
}
}
}